I'm trying to create a simple terminal program that can "scroll up" to see text that has been written to the terminal (but has since moved off the screen).
I can use the ANSI escape code \x1bM
and the terminal does "scroll up", but the lines are always blank.
Is it not possible to scroll up and see existing text that has been written to the terminal?
man tput
. What's your$TERM
value? – waltinator Jul 05 '20 at 22:10xterm-256color
– inersha Jul 05 '20 at 22:12