Re: [systemd-devel] [PATCH] pager: add K to less environment
On Wed, 27.02.13 16:26, Lukas Nykryn (lnyk...@redhat.com) wrote: Using less as a pager sometimes breaks terminal when output is interrupted by ctrl-c. Reproducer: run 'sudo journalctl' ctrl-c. Thanks mbr...@redhat.com for the solution. Thanks! Applied! --- src/shared/pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/pager.c b/src/shared/pager.c index 488a12c..5165d2b 100644 --- a/src/shared/pager.c +++ b/src/shared/pager.c @@ -85,7 +85,7 @@ int pager_open(void) { dup2(fd[0], STDIN_FILENO); close_pipe(fd); -setenv(LESS, FRSX, 0); +setenv(LESS, FRSXK, 0); /* Make sure the pager goes away when the parent dies */ if (prctl(PR_SET_PDEATHSIG, SIGTERM) 0) Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] [PATCH] pager: add K to less environment
Using less as a pager sometimes breaks terminal when output is interrupted by ctrl-c. Reproducer: run 'sudo journalctl' ctrl-c. Thanks mbr...@redhat.com for the solution. --- src/shared/pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/pager.c b/src/shared/pager.c index 488a12c..5165d2b 100644 --- a/src/shared/pager.c +++ b/src/shared/pager.c @@ -85,7 +85,7 @@ int pager_open(void) { dup2(fd[0], STDIN_FILENO); close_pipe(fd); -setenv(LESS, FRSX, 0); +setenv(LESS, FRSXK, 0); /* Make sure the pager goes away when the parent dies */ if (prctl(PR_SET_PDEATHSIG, SIGTERM) 0) -- 1.7.11.7 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel