News for hackers. Stuff that matters.
Re:Things Every Hacker Once Knew by AceJohnny2 on Friday January 27, 2017 @04:39PM (#13502922)
I made and printed out a nicely-formatted table that's adorning my office wall right now, for when I was trying to debug some terminal issues a while back (App UART->Telnet->Terminal is an interesting pipeline[1]), because I was frustrated with the readability of the tables I could quickly find online, and they didn't have the caret notation that so many terminal apps still use (quick, what's the ASCII value for ^[ and what's its name?[2]).

Cool story bro, I know, but I meant to put the file online in response here, but I can't find the source doc anymore >_< Edit: actually, I found an old incomplete version as a Apple Numbers file. If there's interest I can whip it back up into shape and post it as PDF.

[1] For example, when a unix C program outputs "\n", it's the terminal device between the program and the user TTY that translates it into \r\n. You can control that behavior with stty. I know this is something ESR would laugh at being novel to me. On bare-metal, you have no terminal device between you program and the UART output, so you need to add those \r\n yourself.

[2] That's ESC "escape" at decimal 26/hex 1B, and you can generate it in a terminal by pressing the Escape key or Ctrl-[

Re:Things Every Hacker Once Knew by i336_ on Friday January 27, 2017 @05:45PM (#13503426)
Consider just taking a photo of the table you found.

It's entirely possible that someone reading this thread will be able to source it.

But it's just a text table, right? It should be fairly trivial to reproduce it from a decent picture.

By the way, thanks for clarifying the existence and purpose of the now-in-kernel "terminal device." I've understood the Linux PTS mechanism and am aware of the Unix98 pty thing and all of that, but identifying it like that helps me mentally map it better.

Re:Things Every Hacker Once Knew by JdeBP on Saturday January 28, 2017 @01:50PM (#13508007)
The name that you need to know is line discipline.
Re:Things Every Hacker Once Knew by i336_ on Saturday January 28, 2017 @06:24PM (#13510259)
Right... and that's the collective name for the terminal device's settings. I see, thanks!
Re:Things Every Hacker Once Knew by Drdrdrq on Saturday January 28, 2017 @01:32PM (#13507896)
Minor nitpick: isn't ESC decimal 27? I distinctly remember comparing char codes to 27 in Turbo Pascal to detect when user pressed Esc key... :)
Re:Things Every Hacker Once Knew by AceJohnny2 on Saturday January 28, 2017 @02:49PM (#13508591)
LOL you're right. I guess I still managed to misread my table ^_^;