]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/pager: ignore ^C when piping to less and K is not set
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 11 Nov 2018 18:04:00 +0000 (19:04 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 Nov 2018 15:53:50 +0000 (16:53 +0100)
commit6432da6a692268c52f90dd6d247c35a5c7da4e27
tree9b96781ec4ede2b2425e34b09a28d37635a7b4c5
parentce02b69ea8e6961facdae93ea85a1679bdbe07f3
basic/pager: ignore ^C when piping to less and K is not set

Normally, we want to immediately quit on ^C. But when we are running under
less, people may set SYSTEMD_LESS without K, in which case they can use ^C to
communicate with less, and e.g. start and stop following input.

Fixes #6405.
man/less-variables.xml
src/basic/pager.c