Skip to content

Conversation

@KoviRobi
Copy link

Less has an option to redraw the screen after quitting, which might mean you get the behaviour you want using -X (have the last [manpage? etc] screen visible after quit) while still supporting scroll.

# From man less(1)
       --redraw-on-quit
              When quitting, after sending the terminal  deinitialization  string,  redraws
              the  entire last screen.  On terminals whose terminal deinitialization string
              causes the terminal to switch from an alternate screen, this makes  the  last
              screenful of the current file remain visible after less has quit.

This is just a suggestion, if you have a different reason to use -x then this doesn't have to go in, but maybe I should still update the comment so that others know of --redraw-on-quit too

Less has an option to redraw the screen after quitting, which might mean you get the behaviour you want using `-X` (have the last [manpage? etc] screen visible after quit) while still supporting scroll.

```shell
# From man less(1)
       --redraw-on-quit
              When quitting, after sending the terminal  deinitialization  string,  redraws
              the  entire last screen.  On terminals whose terminal deinitialization string
              causes the terminal to switch from an alternate screen, this makes  the  last
              screenful of the current file remain visible after less has quit.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant