[systemd-devel] [PATCH] pager: remove --no-init setting from LESS options

Lennart Poettering lennart at poettering.net
Tue Feb 11 09:39:36 PST 2014


On Tue, 11.02.14 05:55, Jason A. Donenfeld (Jason at zx2c4.com) wrote:

> I use konsole. It has a nice feature that when the scrollbars have been
> disabled -- like in the case of a full-console app like vim or less --
> it makes the mouse wheel send up and down key strokes, so that
> scrolling happens. It's really nice. I open up less, and then I can
> scroll through it using the mouse wheel.
> 
> This doesn't work with systemd's pager, however, because systemd passes
> --no-init to less. This patch removes this "X" flag.

Well, we use the pager in away that it disables itself on short outputs
that don't actually need a pager... Now, if you drop the X, then this
will always clear the terminal, thus always showing the output as "full
screen".

I am pretty sure that the current behaviour is the better default.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list