summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2000-09-01More -Wall anmd KNF, from op2@tomahawk.SQUiSH.orgTodd C. Miller
2000-08-02$HOME paranoia: never use getenv("HOME") w/o checking for NULL and non-zeroTodd C. Miller
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-04-12Trailing whitespace begone!Aaron Campbell
2000-03-12If no 'begin' key on keypad, use 'home' instead since PC keyboardsTodd C. Miller
have 'home', not 'begin'.
2000-03-10Various cleanups and standardization.Aaron Campbell
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-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-29some key binding examplesTheo de Raadt
2000-02-29some binding informationTheo de Raadt
2000-02-29Better backwards regexp searching. POSIX regexp's don't really giveTodd C. Miller
a good way to do this.
2000-02-29Kill old gnuemacs regex code--we now use POSIX regexTodd C. Miller
This means mg is now truly free (public domain)
2000-02-29regex.cTodd C. Miller
2000-02-29Make reverse searching work.Todd C. Miller
2000-02-28Use POSIX extended regular expressions.Todd C. Miller
Reverse regex searching does not yet work.
2000-02-28Lots of obvious clean-up, but needs more work.Aaron Campbell
2000-02-27make this compile on systems w/o TCSASOFTTodd C. Miller
2000-02-27Don't define -DDO_METAKEY twiceTodd 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-27Move dobindkey() into extend.c where it belongs.Todd C. Miller
2000-02-27Remove a now-bogus commentTodd C. Miller
Use pid_t Use vfork(), not fork() when sensible
2000-02-27use rmdir, not unlinkdir hackTodd C. Miller
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-27We don't have silly SYSV 14-character file name limits. Taken fromTodd C. Miller
the BSD fileio.c. Note that this module is rife with PATH_MAX overflow possibilities.
2000-02-26Use uid_t, gid_t and mode_t where applicable.Todd C. Miller
Pull in changes from the BSD-specific sysdef.h and fileio.c: kill bogus unlinkdir() and rename() kludges since we have rmdir(2) and rename(2) define SYMBLINK since we have symlinks TODO: merge BSD spawn.c and 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-25more pruningTheo de Raadt
2000-02-25further pruningTheo de Raadt
2000-02-25mandoc, but needs much more fleshing outTheo de Raadt
2000-02-25make it minimally compile; millertTheo de Raadt
2000-02-25initial import of mg2aTheo de Raadt