项目作者: bnoordhuis

项目描述 :
Pretty-print the contents of `struct termios`
高级语言: C
项目地址: git://github.com/bnoordhuis/termios.git
创建时间: 2019-07-08T07:58:16Z
项目社区:https://github.com/bnoordhuis/termios

开源协议:ISC License

下载


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:

  1. $ termios
  2. c_iflag BRKINT|ICRNL|IMAXBEL|IXANY|IXON
  3. c_oflag ONLCR|OPOST
  4. c_cflag CREAD|CSIZE|HUPCL
  5. c_lflag ECHO|ECHOCTL|ECHOE|ECHOK|ECHOKE|ICANON|IEXTEN|ISIG|PENDIN
  6. c_cc 4,255,255,127,23,21,18,255,3,28,26,25,17,19,22,15,1,0,20,255
  7. c_ispeed 9600
  8. c_ospeed 9600

To probe a file descriptor, in this case stderr:

  1. $ termios 2
  2. # <output elided for brevity>

To probe a character device:

  1. $ termios /dev/ttyS0
  2. # <output elided for brevity>