CBELL = '\007'
CDEL = '\177'
CEOF = '\004'
CERASE = '\010'
CESC = '\\'
CFORM = '\014'
CINTR = '\003'
CKILL = '\025'
CNUL = '\0'
CQUIT = '\034'
CSTART = '\021'
CSTOP = '\023'
CVT = '\013'
NCC = 8
PAGE_SETL = 04
PAGE_MSK = 03
PAGE_ON = 01
PAGE_OFF = 02
PAGE_ENB = PAGE_ON
TIOC = (ord('T')<<8)
TCGETS = (TIOC|1)
TCSETS = (TIOC|2)
TCSETSW = (TIOC|3)
TCSETSF = (TIOC|4)
TCGETA = (TIOC|5)
TCSETA = (TIOC|6)
TCSETAW = (TIOC|7)
TCSETAF = (TIOC|8)
TCSBRK = (TIOC|9)
TCSBREAK = (TIOC|10)
TCXONC = (TIOC|11)
TCFLSH = (TIOC|12)
TCGLEN = (TIOC|13)
TCSLEN = (TIOC|14)
TCSAK = (TIOC|15)
TCQSAK = (TIOC|16)
TCTRUST = (TIOC|17)
TCQTRUST = (TIOC|18)
TCSMAP = (TIOC|19)
TCGMAP = (TIOC|20)
TCKEP = (TIOC|21)
TCGSAK = (TIOC|22)
TCLOOP = (TIOC|23)
TCVPD = (TIOC|24)
TCREG = (TIOC|25)
TCGSTATUS = (TIOC|26)
TCSCONTROL = (TIOC|27)
TCSCSMAP = (TIOC|28)
TCGCSMAP = (TIOC|29)
TCMGR = TCSAK
TCQMGR = TCQSAK
#TIONREAD = FIONREAD
TCSAKOFF = 0
TCSAKON = 1
TCUNTRUSTED = 0
TCTRUSTED = 1
