Preventing the manual pager from clearing the screen

When the man pager has displayed a manpage, and the q key is used to exit the program, the screen is cleared. It is possible to revert the manpager to its legacy behaviour, leaving the tail end of the manpage on the display.

This occurs because the less pager provides a terminal initialization function, and can be configured to redraw the screen back to the way it was before the pager was used:

man.conf

It is possible to change the behaviour of the man pager by modifying the /etc/man.conf configuration file as follows:

Configuration of the less pager

It is also possible to change the behaviour of the less pager as follows:

More or Less

It is possible to use more as the page viewer, rather than less, as follows:

See also

ManPage