summaryrefslogtreecommitdiff
path: root/usr.bin/mg/tty.c
AgeCommit message (Collapse)Author
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2002-08-28ANSIfication uncovers function argument bugs. How unusual.Artur Grabowski
2002-08-23ansiVincent Labrecque
2002-07-01 just make vtresize return TRUE/FALSE instead of 0/-1, for consistency withVincent Labrecque
the rest of the mg code. + some KNF. adapted from diff by zyrnix.
2002-02-21remove a wrapper around getenv()Theo de Raadt
2002-02-21signal-safe window size changingTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-14some KNFTheo de Raadt
2002-02-05Get rid of signal race (and handling of SIGWINCH).Artur Grabowski
New code is almost done, but not really tested yet.
2002-01-18Remove the NROW and NCOL limits. The static arrays are now replaced withArtur Grabowski
dynamically allocated memory. Code written by Vincent Labrecque <limitln@Psyfreaks.CA> with some minor tweaks by me.
2002-01-10Clean up tty resizing code.Artur Grabowski
Catch SIGWINCH and resize and refresh the screen.
2001-05-24spacesMichael Shalayeff
2001-05-23remove VOID. We're way beyond the point where this could build with anArtur Grabowski
ancient compiler.
2001-01-29$OpenBSD$Niklas Hallqvist
2000-09-01More -Wall anmd KNF, from op2@tomahawk.SQUiSH.orgTodd C. Miller
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-03Reverse rutgers change (attachtoparent vs. spawncli)Todd C. Miller
New ttreinit function that enters application mode, enables the keypad and resets the tty size. New spawn module that calls tttidy() to exit application mode (and cleanup) then calls ttreinit() after resume to get back into application mode. Assumes we have job control. This takes advantage of the xterm 'alternate screen'.
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-25initial import of mg2aTheo de Raadt