Initially I thought Unlimited scrolling was not working with the terminal application on 16.04. I have the option "limit scrollback to" unchecked. Some times it scrolls back some times it does not. Then I realized it does not scroll back when ever I use clear
command. It scrolls back only one scree.
I use clear a lot(almost once in every 3 commands).
The man page for clear points to terminfo.
There are some options on terminfo but I can't find a config file where I can define the options.
All the files under /lib/terminfo/ from where clear seems to be reading its config are in compiled format and I do not understand them.
I didn't see this issue with earlier to 14.04(guessing).
Any help is greatly appreciated.
Thanks.
Best Answer
What you want is to type CTRL+L instead of
clear
.This will send a "Form Feed" to the terminal. Basically it will move everything up the height of the terminal window clearing the screen without affecting your scrollback.