IOCTL

Although Unix controls terminal device by a set of commands (second argument) to ioctl, EusLisp provides them in the forms of function to eliminate to reference the include files and or'ing argument with the command codes. For the detail, refer to the termio manual pages of Unix.

There are two sets of terminal io-controls: TIOC* and TC*. Be careful about the availability of these functions on your operating system. Basically, BSD supports TIOC* io-controls and Sys5 supports TC*.

SunOS 4.1 Both TIOC* and TC*
Solaris2 only TC*
mips, ultrix? only TIOC*



unix:tiocgetp stream [sgttybuf] [function]

gets parameters.


unix:tiocsetp stream sgttybuf [function]
sets parameters.


unix:tiocsetn stream [sgttybuf] [function]


unix:tiocgetd stream [sgttybuf] [function]


unix:tiocflush stream [function]
flushes output buffer


unix:tiocgpgrp stream integer [function]
gets process group id.


unix:tiocspgrp stream integer [function]
sets process group id.


unix:tiocoutq stream integer [function]


unix:fionread stream integer [function]


unix:tiocsetc stream buf [function]


unix:tioclbis stream buf [function]


unix:tioclbic stream buf [function]


unix:tioclset stream buf [function]


unix:tioclget stream buf [function]


unix:tcseta stream buffer [function]

sets terminal parameters immediately.


unix:tcsets stream buffer [function]
sets terminal parameters.


unix:tcsetsw stream buffer [function]
sets terminal parameters after all characters queued for output have been transmitted.


unix:tcsetsf stream buffer [function]
sets terminal parameters after all characters queued for output have been transmitted and all characters queued for input are discarded.


unix:tiocsetc stream buffer [function]


unix:tcsetaf stream buffer [function]


unix:tcsetaw stream buffer [function]


unix:tcgeta stream buffer [function]


unix:tcgets stream buffer [function]


unix:tcgetattr stream buffer [function]


unix:tcsetattr stream buffer [function]


k-okada 2013-05-21