The TTY demystified
last updated: Oct 20, 2023
https://www.linusakesson.net/programming/tty/
A long, thorough post on what a TTY is and how it works in Linux.
Via Mitchell Hashimoto and Abner Coimbre talking about how terminals work in this video; talk goes from 2:45:00 to 3:45:00 and the references to the article is roughly at 3:05:00.