News for hackers. Stuff that matters.
Re:What is TTY? by teddyh on Saturday August 13, 2022 @04:18PM (#32453402)
I prefer this: https://www.linusakesson.net/programming/tty/

In fact, the image with the “hardware” and “software” diagrams seems to have been copied directly from that link. I did not see any attribution or acknowledgement.

Re:What is TTY? by laixintao on Sunday August 14, 2022 @01:22AM (#32456611)
Hi teddyh, like wey-gu mentioned, I am the author of this original Chinese version post, I think this English version was translated by machine instead of human.

You can see from the original post[0], I add a link, a description and credits to every image that not created by me.

However, I accept all other technical criticism under this threads, I didn't dig deep enough while writing this. I will learn more.

0: https://www.kawabangga.com/posts/4515

Re:What is TTY? by knorker on Saturday August 13, 2022 @07:21PM (#32454723)
It can be good to write things down for yourself, to think them through. But I agree that to actually teach others Linus describes it much better, without the sprinkling of errors this post has.

Like for example the author confuses the terminal for the shell. ctrl-w very much is passed right through to bash.

But the author is correct if the user types "cat\n". Now it's the terminal handling ctrl-w. But note that cat doesn't handle ctrl-a.

It's more complex than the author seems to think.

tl;dr: read the other post, not this one.