less icon indicating copy to clipboard operation
less copied to clipboard

How about an option to make q quit just like ^C + --quit-on-intr

Open jidanni opened this issue 4 years ago • 2 comments

# journalctl
q
^C
^C^C^C
^Z
[1]+  Stopped                 journalctl
# kill %
[1]+  Terminated              journalctl

OK, less --quit-on-intr fixes this mostly, but how about an option to make "q" quit even without needing to then hit ^C if q doesn't work right away? less 551

jidanni avatar Nov 22 '21 23:11 jidanni

Is this the same as #62, or is it referring to a different case?

gwsw avatar Jan 16 '22 23:01 gwsw

I'm not too qualified to say.

jidanni avatar Jan 17 '22 18:01 jidanni

The --intr option was added in 7a930a4b872e67b537fdde5af2245506f47d67df, which lets you specify the read interrupt character (default ctrl-X). You could change it to "q" if you wanted. You'd still need to press "q" twice to exit less if "Waiting for data" is displayed (once to abort the read and again to exit less).

gwsw avatar Jan 07 '23 22:01 gwsw