You are not logged in.

#1 2024-08-03 09:33:42

aljustiet
Member
Registered: 2024-02-09
Posts: 69
Website

How can I make the less keep the output?

When I'm in archiso and I quit less, it keeps the output, which is useful since I don't need to open it again. How can I do that on the installed Arch?

Offline

#2 2024-08-03 09:53:11

stanczew
Member
Registered: 2021-03-02
Posts: 85

Re: How can I make the less keep the output?

https://man.archlinux.org/man/less.1.en#X

-X or --no-init
    Disables sending the termcap initialization and deinitialization strings to the terminal. This is sometimes desirable if the deinitialization string does something unnecessary, like clearing the screen.

Offline

#3 2024-08-03 09:55:11

aljustiet
Member
Registered: 2024-02-09
Posts: 69
Website

Re: How can I make the less keep the output?

stanczew wrote:

https://man.archlinux.org/man/less.1.en#X

-X or --no-init
    Disables sending the termcap initialization and deinitialization strings to the terminal. This is sometimes desirable if the deinitialization string does something unnecessary, like clearing the screen.

I read the docs, but I didn't understand what that meant.

Offline

#4 2024-08-03 10:00:38

Awebb
Member
Registered: 2010-05-06
Posts: 6,517

Re: How can I make the less keep the output?

Well, it said "does something unnecessary, like clearing the screen" :-)

Offline

#5 2024-08-03 10:14:27

stanczew
Member
Registered: 2021-03-02
Posts: 85

Re: How can I make the less keep the output?

aljustiet wrote:

I read the docs, but I didn't understand what that meant.

No problem, I admit it's not obvious at first sight, and the manpage is quite long. I just like to cite my sources.

Offline

Board footer

Powered by FluxBB