3 ms·
How Terminals Work
- g-b-r 9mo agoWow, this seems so good !!!
- neeewbee 9mo agoThanks for this great work, very helpful. Today I learned!
- mcc1ane 9mo agorelated - https://devblogs.microsoft.com/commandline/windows-command-line-backgrounder/ https://devblogs.microsoft.com/commandline/windows-command-l...
- deleted 9mo ago[deleted]
- Cr8 9mo agonitpick - EOF is not a signal, it just flushes the current line content without needing a newline in cooked mode and doing this on an empty line results in a 0 byte read(), which most apps interpret as EOF and the terminal emulator is not itself sending the signals, its always just sending raw characters to the pty device - it is the kernel's pty layer sending a signal if the right flags are on and doing line buffering, local echo, etc. and signals go to the foreground process group (which is set by the shell making a tcsetpgrp syscall)
- JdeBP 9mo agoFor the record: https://mastodonapp.uk/@JdeBP/115869933538346446 https://mastodonapp.uk/@JdeBP/115869933538346446