4 ms·
Any command-line that uses readline[0], which in practice is an absolute ton of things. This includes nodejs's repl, irb, ed, gdb, tftp, virsh, gpg --card-edit
by TheDong 8y ago
Any command-line that uses readline[0], which in practice is an absolute ton of things.
This includes nodejs's repl, irb, ed, gdb, tftp, virsh, gpg --card-edit, and others.
It also works for programs that read stdin as if it's a file if you're using a modern readline shell to run them (e.g. cat, tee, etc)
[0]: https://en.wikipedia.org/wiki/GNU_Readline https://en.wikipedia.org/wiki/GNU_Readline
- mortehu 8y agoIt has nothing to do with readline, but is a feature of the TTY (i.e. implemented inside the kernel) when in canonical mode. It will work for anything that exits in reaction to read(STDIN_FILENO, ...) returning zero.