[apue] 一个查看当前终端标志位设置的小工具

话不多说,先看运行效果:

>./term input flag 0x00000500 BRKINT not in ICRNL IGNBRK not in IGNCR not in IGNPAR not in IMAXBEL not in INLCR not in INPCK not in ISTRIP not in IUCLC not in IXANY not in IXOFF not in IXON PARMRK not in output flag 0x00000005 BSDLY not in CMSPAR not defined CRDLY not in FFDLY not in NLDLY not in OCRNL not in OFDEL not in OFILL not in OLCUC not in ONLCR ONLRET not in ONOCR not in ONOEOT not defined OPOST OXTABS not defined TABDLY not in VTDLY not in control flag 0x000000bf CBAUDEXT not defined CCAR_OFLOW not defined CCTS_OFLOW not defined CDSR_OFLOW not defined CDTR_IFLOW not defined CIBAUDEXT not defined CIGNORE not defined CLOCAL not in CREAD CRTSCTS not defined CRTS_IFLOW not defined CRTSXOFF not defined CSIZE CSTOPB not in HUPCL not in MDMBUF not defined PARENB not in PAREXT not defined PARODD not in local flag 0x00008a3b ALTWERASE not defined ECHO ECHOCTL not defined ECHOE ECHOK ECHOKE not defined ECHONL not in ECHOPRT not defined EXTPROC not defined FLUSHO not defined ICANON IEXTEN ISIG NOFLSH not in NOKERNINFO not defined PENDIN not defined TOSTOP not in XCASE not in input control char array size 32 cc[VDISCARD=13] = 15 () VDSUSP not defined cc[VEOF=4] = 4 () cc[VEOL=11] = 0 () cc[VEOL2=16] = 0 () cc[VERASE=2] = 127 () VERASE2 not defined cc[VINTR=0] = 3 () cc[VKILL=3] = 21 () cc[VLNEXT=15] = 22 () cc[VQUIT=1] = 28 () cc[VREPRINT=12] = 18 () cc[VSTART=8] = 17 () VSTATUS not defined cc[VSTOP=9] = 19 () cc[VSUSP=10] = 26 () cc[VWERASE=14] = 23 ()

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wppsss.html