WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: the TTY demystified  (Read 225 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 698
  • ~.~
the TTY demystified
« on: December 01, 2024, 07:11:56 AM »
Learn. Share. Grow your knowledge of Linux.

i was skimming through
  "the TTY demystified" @ https://www.linusakesson.net/programming/tty/index.php

ans wandered if it had been posted this hear ( search didn't find any previous mentions)

Quote
The TTY subsystem is central to the design of Linux, and UNIX in general. Unfortunately, its importance is often overlooked, and it is difficult to find good introductory articles about it. I believe that a basic understanding of TTYs in Linux is essential for the developer and the advanced user.

...

Quote
In The Hitchhiker's Guide to the Galaxy, Douglas Adams mentions an extremely dull planet, inhabited by a bunch of depressed humans and a certain breed of animals with sharp teeth which communicate with the humans by biting them very hard in the thighs. This is strikingly similar to UNIX,in which the kernel communicates with processes by sending paralyzing or deadly signals to them. Processes may intercept some of the signals, and try to adapt to the situation, but most of them don't.


https://github.com/torvalds/linux/blob/master/drivers/tty/n_tty.c

https://docs.kernel.org/5.17/tty/n_tty.html

https://github.com/torvalds/linux/blob/master/drivers/tty/tty_io.c

https://www.kernel.org/doc/html/v5.8/driver-api/serial/tty.html
« Last Edit: December 01, 2024, 07:18:01 AM by mocore »

Offline mocore

  • Hero Member
  • *****
  • Posts: 698
  • ~.~
Re:TTY demystified - terminal/readline navigation/shortcuts
« Reply #1 on: January 08, 2025, 04:42:12 PM »

https://gist.github.com/jottr/a2351377b7584abf100b?permalink_comment_id=4433821#gistcomment-4433821
Quote
Where does the ctrl+c (aka C-c or \C-c) come from? Any ideas?

Quote
It comes from the line discipline part of the TTY driver.

more about
other (readline)shortcuts
 Linux Terminal Keyboard Shortcuts @  https://forum.tinycorelinux.net/index.php/topic,22130.0.html
the short cuts in the last link (afaik) were  obtained by divination
hear is another (markdown) list https://gist.github.com/jottr/a2351377b7584abf100b
that mentions
Quote
source: arch wiki

*celebratory dancing*

(Technotronic - Pump Up The Jam)
https://www.youtube.com/watch?v=9EcjWd-O4jI