2 ms·
Yes, I’m aware of what it does. But do you have any screen oriented programs that treats ^D as a signal to close stdin? You are right, it does exit on ^C. I pi
by fnordpiglet 4y ago
Yes, I’m aware of what it does. But do you have any screen oriented programs that treats ^D as a signal to close stdin?
You are right, it does exit on ^C. I picked it as an example of something that seems compliant but doesn’t actually behave like a line oriented program as a screen oriented program.
- quesera 4y ago> But do you have any screen oriented programs that treats ^D as a signal to close stdin? stdin is a different thing in a screen-oriented program than a line-oriented one, yes. Screen-oriented typically operates on characters not strings, roughly. Closing stdin in a screen-oriented program doesn't really have a meaningful interpretation. But if you'd like an example of a screen-oriented program that exits on Ctrl-D, I can offer musikcube. Not very well-known perhaps (though it's a great music player), and to be fair I consider the Ctrl-D behavior to be a UX oddity, however harmless.