2

I mistakenly hitted CTRL+L and hiddened output from my previous viewport of the terminal window (Putty window in that case).

Of course I can scroll up with the mouse and see the Bash output but that does not bring last portion of the output to its previous place (lesser part of the window).

How to revert or "undo" CTRL+L in Bash non terminal-emulator CLUIs (CetnOS 12.x.x server, in this case).

1 Answer 1

2

You can't do that. When you pressed CTRL-L, bash didn't delete anything, it just sent an escape (clear = \e[H\e[2J) to putty to order it to clear the screen.

While scouring putty's memory with a windows debugger and hoping that those precious bits weren't already overwritten may be possible, that task is quite involved and completely offtopic here.

You must log in to answer this question.