| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
-UDIRED_XMAPS and -UFUND_XMAPS: you can't build mg the other way.
-DTIOCGWINSZ: you have this if you have term.h
Remove a #define TERMCAP which isn't being used.
Remove defines for NDIRED_XMAPS, NFUND_XMAPS, and IMAPEXT. They are all
defined to be 0 and are only ever used in addition. We don't need to add 0.
Simply lines that were using those defines.
ok florian@
|
|
|
|
|
|
|
|
|
|
| |
This does the following:
Moves all POSIX headers from sysdef.h into the individual .c files so that
each file now only includes what it needs. All headers are properly sorted.
Moves the remainder of sysdef.h to other files (mostly def.h) and deletes
sysdef.h now that it's no longer contains anything.
Tweak a comment that references sysdef.h so that it no longer does that.
ok florian@
|
|
|
|
|
|
|
| |
enforce that and remove the options.
Mostly mechanical diff from unifdef with bonus removal of comments that no
longer have any relevance.
ok florian@
|
|
|
|
| |
from Kamil Rytarowski (n54 (at) gmx.com)
|
|
|
|
| |
from Kamil Rytarowski (n54 (at) gmx.com)
|
|
|
|
|
|
|
|
| |
Emulate the emacs behavior: after suspend/resume, buffer switch,
or at save time, warn (prompt) the user if the file has been modified
on disk in the interim.
This has already saved my butt numerous times.
ok phessler
|
|
|
|
|
|
| |
and leaving terminal in an inusable state if setupterm failed.
ok kjell
|
|
|
|
|
|
|
| |
* add <signal.h> to sysdef.h (needed for sig_atomic_t on linux, and
we get it by accident on OpenBSD)
* remove <signal.h> from tty.c/spawn.c (not needed now that it's in sysdef.h)
ok beck
|
| |
|
|
|
|
|
| |
suspended. Problem reported and fixed tested by reyk@; tweak by
kjell@; ok kjell@
|
|
|
|
|
|
|
| |
In theory, mg should now be much more efficient on slow displays (hello,
zaurus).
Spotted by lint. ok millert.
|
| |
|
| |
|
|
|
|
| |
ok millert@, deraadt@
|
|
|
|
|
|
|
|
|
|
| |
- spelling, punctuation fixes
- variable declaration lineup
- use parentheses for return and sizeof
- K&R function declarations -> ANSI
- other minor code beautification
ok henning@
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
the rest of the mg code. + some KNF.
adapted from diff by zyrnix.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
New code is almost done, but not really tested yet.
|
|
|
|
|
|
| |
dynamically allocated memory.
Code written by Vincent Labrecque <limitln@Psyfreaks.CA> with some minor
tweaks by me.
|
|
|
|
| |
Catch SIGWINCH and resize and refresh the screen.
|
| |
|
|
|
|
| |
ancient compiler.
|
| |
|
| |
|
|
|
|
| |
needs hand fixup. I stopped at keymap.c...
|
|
|
|
|
|
|
|
|
| |
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'.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
convert to terminfo in tty*.c
add support for some keypad function keys (arrows, pgup, pgdown)
|
|
|