Does anybody have a clue how less (and more) work internally? Do I need to read ALL of stdin before I can get controlled by the user?

tty = fopen_for_read(CURRENT_TTY);

Ah, thanks busybox. Just open the tty as a file :)

Show thread
Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml