Damus
Julia Evans profile picture
Julia Evans
@Julia Evans
got a lot of great answers to "how is the shell involved in handling Ctrl+C" to the effect of one of:

- "the shell is responsible for sending a SIGINT"
- "the shell takes input from the terminal emulator and relays it to the program"
- "it must be handled by the layer above the program, which is the shell"

and while none of those is true, they feel like they totally _could_ be true in a different world. It feels hard to explain why it might be useful to have a more "accurate" mental model
2
Julia Evans · 83w
it feels like there's this mental model a lot of people have for the terminal which is a little like this (with some more stuff about signals etc) and it's not "true" that the shell is in between the terminal emulator and programs in this way but it feels more compelling to me in some ways than the...
Alaric Snell-Pym · 83w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqupkp7fd7rc3lrjg23r8gy0wc723vze7mxlx5984ut6zurjzpf5xsv56m2n it would be kind of nice if ctrl+c and friends were handled by the shell, to be fair! After all, the shell handles a lot of job control UI for the user, it would be 'natural' for it to h...