[HN Gopher] The TTY Demystified (2008)
       ___________________________________________________________________
        
       The TTY Demystified (2008)
        
       Author : dp-hackernews
       Score  : 51 points
       Date   : 2022-04-24 18:37 UTC (4 hours ago)
        
 (HTM) web link (www.linusakesson.net)
 (TXT) w3m dump (www.linusakesson.net)
        
       | westcort wrote:
       | Basically, the TTY driver keeps track of the foreground process
       | group id, but only in a passive way. A user process can affect
       | the behavior of any TTY device by manipulating the corresponding
       | device file under /dev. For example, a user process can send a
       | signal to the TTY driver, which will then suspend the process.
       | TTY driver keeps track of the size of the connected terminal, but
       | this information has to be updated explicitly, by the terminal
       | emulator or even by the user. The TTY driver is a passive object.
        
       | iforgotpassword wrote:
       | I've read and re-read about all those many quirks a lot of times
       | over the decades, and some of the things I understand to an
       | extend where I know what the issue is when something breaks...
       | but man, the interactions between tty/pty, terminal (emulator),
       | shell, screen, ssh and locales still sometimes make me want to
       | scream.
       | 
       | Nothing better than sshing into a random system and getting a ~
       | when you hit backspace.
        
         | Shared404 wrote:
         | > Nothing better than sshing into a random system and getting a
         | ~ when you hit backspace.
         | 
         | Or having the backspace print as a space, but still being
         | registered as a backspace. That one threw me the first time I
         | ran into that.
        
       | almog wrote:
       | Links to previous discussions:
       | 
       | https://news.ycombinator.com/item?id=13571055
       | 
       | https://news.ycombinator.com/item?id=8094186
       | 
       | https://news.ycombinator.com/item?id=26803109
       | 
       | https://news.ycombinator.com/item?id=10631513
       | 
       | https://news.ycombinator.com/item?id=4062981
       | 
       | https://news.ycombinator.com/item?id=4544318
       | 
       | https://news.ycombinator.com/item?id=10064657
       | 
       | https://news.ycombinator.com/item?id=658155
        
         | metadat wrote:
         | Minor sidenote / hopefully welcome feedback:
         | 
         | When pasting HN link lists like this, it's extra considerate to
         | include the dates and comment counts, since sometimes stories
         | have little or no discussion. Clicking through the links
         | blindly wastes human time, especially for a longer list such as
         | your post.
        
           | almog wrote:
           | 1. Generally speaking, dates are useful, but this is a link
           | to article from 2008, so I'm not sure if previous submissions
           | dates would be all that useful.
           | 
           | 2. All links are to previous _discussions_, none are to
           | discussion-less submissions.
        
             | [deleted]
        
         | dang wrote:
         | Thanks! Macroexpanded:
         | 
         |  _The TTY Demystified (2008)_ -
         | https://news.ycombinator.com/item?id=26803109 - April 2021 (35
         | comments)
         | 
         |  _The TTY demystified (2008)_ -
         | https://news.ycombinator.com/item?id=17765683 - Aug 2018 (12
         | comments)
         | 
         |  _The TTY demystified (2008)_ -
         | https://news.ycombinator.com/item?id=13571055 - Feb 2017 (43
         | comments)
         | 
         |  _The TTY demystified_ -
         | https://news.ycombinator.com/item?id=10631513 - Nov 2015 (40
         | comments)
         | 
         |  _The TTY demystified (2008)_ -
         | https://news.ycombinator.com/item?id=10064657 - Aug 2015 (31
         | comments)
         | 
         |  _The TTY demystified_ -
         | https://news.ycombinator.com/item?id=8094186 - July 2014 (21
         | comments)
         | 
         |  _The TTY Demystified_ -
         | https://news.ycombinator.com/item?id=4544318 - Sept 2012 (46
         | comments)
         | 
         |  _The TTY demystified_ -
         | https://news.ycombinator.com/item?id=4062981 - June 2012 (17
         | comments)
         | 
         |  _The TTY demystified_ -
         | https://news.ycombinator.com/item?id=658155 - June 2009 (13
         | comments)
        
           | almog wrote:
           | Cool, thank you!
        
       ___________________________________________________________________
       (page generated 2022-04-24 23:00 UTC)