Depending on the terminal/environment following sequence has different effects:$ ls12$ man lsenter qEither I see last displayed man-page screen above the current prompt or the ls output and previous shell output is restored. Same effect is observed e.g. when using vim and then suspending it to do something on the shell.On Fedora 19 - the default of screen seems to be no-restore, a gnome-terminal/xterm uses do-restore by default.On Solaris it depends on the used terminal/terminfo db it seems.I want to configure the restore behavior consistently between different systems/terminals.
How to configure screen-restore in a terminal?
terminal;xterm