@b0rk It is worthwhile to think of "Unix" and "readline" separately.
"Unix" provides terminal driver functionality, and cooked mode is part of the driver. Originally, all line editing functionality was provided by the tty driver, and different Unix variants had different features. The BSD driver was way more feature rich than the Unix System V driver. One thing all Unix tty drivers have in common, however, is that they have programmable control characters.
1/
@hanshuebner I don't really understand what you mean, I think it's obvious that "readline" exists at a very different level than the terminal driver?
what's interesting to me is that from a user’s perspective it's very unclear which things are being handled by the OS and which are passed through to the application and they're just kind of chaotically mixed together