Using the zsh shell, I've noticed a difference in the behavior of the tput command compared to bash. For instance With zsh, if you have many things output to a terminal emulator window and you're at the bottom, if you do tput cup 1, you go back up and everything below is cleared. With bash the output remains and is not cleared (on my setup). This comparison is valid for every terminal capability that moves the cursor around (cuu, cud, sc & rc, home, etc.). Do you have any control over that behavior in zsh i.e. not clearing? I'm looking at the possible options, but there's lots of things... If you cannot alter the behavior, can you use some other command which doesn't behave like such?
Cursor movement related tput commands under zsh: can the 'clear' behavior be configured?
zsh;termcap;tput
zsh outputs its completions below the prompt, so it makes sure that area is clear.I don't think you can disable it. However you can tell zsh that the escape sequence to clear until the end of the screen is the empty string.infocmp -x | sed 's/ed=[^,]*/ed=/' | TERMINFO=~/.zsh-terminfo tic -x -Then, you can start zsh with:TERMINFO=~/.zsh-terminfo zshAnd unset TERMINFO later, but you'll find that the completion is never cleared which makes it awkward to use.