summaryrefslogtreecommitdiff
path: root/usr.bin/mg/ttyio.c
AgeCommit message (Collapse)Author
2001-05-24spacesMichael Shalayeff
2001-05-23remove VOID. We're way beyond the point where this could build with anArtur Grabowski
ancient compiler.
2001-05-03Add a delay (in miliseconds) argument to ttwait.Artur Grabowski
2001-01-29$OpenBSD$Niklas Hallqvist
2000-07-25o check that we are on a tty (and bail if not)Todd C. Miller
o in panic() just call exit() not abort()
2000-04-13The start of KNF + -Wall. The code has been run through indent butTodd C. Miller
needs hand fixup. I stopped at keymap.c...
2000-03-02add missing return valueTodd C. Miller
2000-03-02Use a char, not a char[1] in ttgetc and cast the return value to int.Todd C. Miller
Perhaps this should really be a u_char but I don't think it really matters.
2000-03-02Reorganize to be more like the BSD version + KNFTodd C. Miller
2000-02-27make this compile on systems w/o TCSASOFTTodd C. Miller
2000-02-27Better setting of terminal 'raw' mode, cribbed from BSD curses.Todd C. Miller
We no longer try to put the terminal into 8bit, no parity mode and instead use the TCSASOFT flag to tcsetattr() as per the discussion of this in lib/libocurses/tty.c.
2000-02-27Call setttysize() from ttinit() not ttopen() since we haven'tTodd C. Miller
run setupterm() until ttinit() is called. Remove a tgetnum() I missed in the termcap -> terminfo cleanup. Merge parts of the BSD ttyio.c. The termios stuff here could use a cleanup, possibly including the flow control hack from the BSD ttyio.c.
2000-02-26change WINDOW -> MGWIN to avoid curses type conflictTodd C. Miller
convert to terminfo in tty*.c add support for some keypad function keys (arrows, pgup, pgdown)
2000-02-25further pruningTheo de Raadt
2000-02-25make it minimally compile; millertTheo de Raadt
2000-02-25initial import of mg2aTheo de Raadt