Using the “alternate screen” in a bash script

后端 未结 3 1345
深忆病人
深忆病人 2020-11-30 21:23

The alternate screen is used by many \"user-interactive\" terminal applications like vim, htop, screen, alsamixer, less, ... It is like a different buffer of the te

3条回答
  •  日久生厌
    2020-11-30 21:50

    smcup/rmcup are used, but only for the side effect: the escape sequence which switches between normal/alternate screens is usually embedded in those terminfo capabilities -- not always.

    Some background is in the xterm faq Why doesn't the screen clear when running vi?

提交回复
热议问题