• Log in
  • Register

linkhut
Bookmarks
tagged with:
  • tui
  • interface
Sort by:
  • recency
  • popularity
Order:
  • descending
  • ascending

08 Jun 26

Using the "alternate screen" in a bash script

https://stackoverflow.com/questions/11023929/using-the-alternate-screen-in-a-bash-script

You can switch to the alternate screen using this command:

$ tput smcup

And back with:

$ tput rmcup

by ludv 2 weeks ago
Tags:
  • alternate
  • screen
  • buffer
  • tui
  • interface
  • tput
  • ncurses
  • xterm
  • ansi
  • escape
  • sequenses
  • codes

How does vi restore terminal content after quitting it?

https://stackoverflow.com/questions/15044274/how-does-vi-restore-terminal-content-after-quitting-it

Vi flips to the alternate screen buffer, supported by terminals. This is achieved using escape sequences.

Found by searching: restore screen after tui exit in c

by ludv 2 weeks ago
Tags:
  • tui
  • interface
  • terminal
  • ansi
  • escape
  • sequences
  • c
  • alternate
  • screen
  • buffer

Tags
Sort by:
  • label
  • usage
Order:
  • ascending
  • descending
  • screen
  • buffer
  • escape
  • interface
  • ansi
  • tui
  • alternate
  • tput
  • xterm
  • c
  • codes
  • ncurses
  • sequences
  • sequenses
  • terminal
Explore
  • Recent
  • Popular
RSS feed

linkhut is open source software. You can contribute and report issues on SourceHut at ~mlb/linkhut (v0.1.6)