hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.3K
active users

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

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 reality.

it makes explaining how the terminal works a little weird — I don't want to teach a “wrong” mental model just because it feels simpler (that seems silly), but also the "correct” mental model feels kind of overly complicated and not worth explaining because there's not obviously a lot of real-world value to learning it

not really looking for advice, just thinking out loud

(3/?)

Heath Borders

@b0rk just like preschool, I want teachers that tell me the truth. I realize the map is never the terrain, so any lesson contains falsehoods, but I think there is always value in being as close to reality as possible.

This isn't advice. It's just what I want as a paying customer. :)

@heathborders yea telling the truth is the only option, I just need to figure out how to do it