2 ms·
Try the cat example again with your tty in raw mode instead of cooked mode. (stty raw) Note that your job control characters will no longer function, so you w
by anonymousiam 2y ago
Try the cat example again with your tty in raw mode instead of cooked mode.
(stty raw)
Note that your job control characters will no longer function, so you will need to kill the cat command from a different terminal, then type: stty sane (or stty cooked) to restore your terminal to "normal" operation.
You will then see the 0d hex carriage return characters in the /tmp/anonymousiam file, and no 0a hex linefeed characters present.
- eqvinox 2y agoWhat bytes your terminal sends to communicate keys pressed and what is used in a text file to communicate the end of a line are not the same thing. "\eE" (0x1b 0x45) can be a terminal newline too, after all. Or try pressing Alt+Enter.