less icon indicating copy to clipboard operation
less copied to clipboard

regression: piped less swallows keystrokes meant for next shell command

Open Fry-kun opened this issue 6 months ago • 17 comments

With earlier versions of less (e.g. 608):

$ echo -e "hello $(sleep 2) world" | less -FRX
# <type in "ls" as next command before the prompt comes back>
hello  world
$ ls<cursor>

With version 643:

$ echo -e "hello $(sleep 2) world" | less -FRX
# <type in "ls" as next command before the prompt comes back>
hello  world
$ <cursor>

Many users type in the next command while waiting for the previous one to complete. This is especially painful when using source control commands which paginate most of their output. The current workaround is to turn off paging by default.

Fry-kun avatar Aug 06 '24 23:08 Fry-kun