https://github.com/bnoordhuis/termios
Pretty-print the contents of `struct termios`
https://github.com/bnoordhuis/termios
termios unix
Last synced: about 1 year ago
JSON representation
Pretty-print the contents of `struct termios`
- Host: GitHub
- URL: https://github.com/bnoordhuis/termios
- Owner: bnoordhuis
- License: isc
- Created: 2019-07-08T07:58:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T08:57:29.000Z (almost 7 years ago)
- Last Synced: 2025-03-25T17:16:27.816Z (about 1 year ago)
- Topics: termios, unix
- Language: C
- Size: 6.84 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
termios
=======
A utility for dumping the contents of `struct termios` for a file descriptor or
character device.
build
=====
Easy, just run `make`. :-)
usage
=====
Basic usage, defaults to probing stdin:
$ termios
c_iflag BRKINT|ICRNL|IMAXBEL|IXANY|IXON
c_oflag ONLCR|OPOST
c_cflag CREAD|CSIZE|HUPCL
c_lflag ECHO|ECHOCTL|ECHOE|ECHOK|ECHOKE|ICANON|IEXTEN|ISIG|PENDIN
c_cc 4,255,255,127,23,21,18,255,3,28,26,25,17,19,22,15,1,0,20,255
c_ispeed 9600
c_ospeed 9600
To probe a file descriptor, in this case stderr:
$ termios 2
#
To probe a character device:
$ termios /dev/ttyS0
#