diff options
Diffstat (limited to 'usr.bin/mg/tty.c')
-rw-r--r-- | usr.bin/mg/tty.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/usr.bin/mg/tty.c b/usr.bin/mg/tty.c index fadea1673c5..7cf082667bc 100644 --- a/usr.bin/mg/tty.c +++ b/usr.bin/mg/tty.c @@ -115,6 +115,19 @@ ttinit() { } /* + * Re-initialize the terminal when the editor is resumed. + * The keypad_xmit doesn't really belong here but... + */ +ttreinit() { + if (enter_ca_mode) + putpad(enter_ca_mode, 1); /* enter application mode */ + if (keypad_xmit) + putpad(keypad_xmit, 1); /* turn on keypad */ + + setttysize(); +} + +/* * Clean up the terminal, in anticipation of * a return to the command interpreter. This is a no-op * on the ANSI display. On the SCALD display, it sets the |