Settings

Theme

How Terminals Work

how-terminals-work.vercel.app

54 points by gnodar a month ago · 6 comments

Reader

Cr8 a month ago

nitpick - 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)

mcc1ane a month ago

related - https://devblogs.microsoft.com/commandline/windows-command-l...

JdeBP a month ago

For the record: https://mastodonapp.uk/@JdeBP/115869933538346446

neeewbee a month ago

Thanks for this great work, very helpful. Today I learned!

g-b-r a month ago

Wow, this seems so good !!!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection