I was trying to use different screen buffer for my script using tput. Below is small script that I am running.tput smcupcleardialog --yesno Do you want to continue? 0 0rc=$?cleartput rmcupif [ ${rc} == 0 ]; then  echo Yeselse  echo NofiAfter the script is finished executing there is a blank part on the screen(as shown below in the image) which is equal to the rows occupied by the prompts before running the script.Ideally tput should have switched to second screen buffer and after executing it should have come back to the first screen buffer.The script switches to the second screen but after coming back it leaves a blank space which shouldn't be there .
screen buffer and dialog
run dialog;tput;dialog