[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] 'less': stuck at end
From: |
Greg Chicares |
Subject: |
Re: [lmi] 'less': stuck at end |
Date: |
Wed, 17 Mar 2021 22:22:38 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 |
On 3/17/21 9:24 PM, Greg Chicares wrote:
> [...] pipe lmi_wx_shared into 'less':
[...]
> Is there any way to tell 'less' to wake up without killing lmi?
The answer is ^X, with less-569 or later:
https://github.com/gwsw/less/issues/49#issuecomment-736182227
https://github.com/gwsw/less/commit/5bf862fde4a33ce4a602f369a0c3cb430c883a12
I have only less-551 in a "bullseye/sid" chroot that I updated
quite recently.
Until then:
https://unix.stackexchange.com/questions/197199/is-there-any-way-to-exit-less-follow-mode-without-stopping-other-processes-in/383124#383124
| (setsid seq 10000000) | less +F
| (trap '' INT; seq 10000000) | less +F
| less -f +F <(seq 10000000)
| (seq 10000000 &) | less +F
of which I find the last two most charming. I'm adopting the
last as my standard method--it seems to work well.
A stray tangential comment--do not do this:
$ less -
because it's really difficult to get out. Backgrounding it
with ^Z lets you kill it.