aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-02-13 12:06:01 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-16 23:17:39 -0300
commite0e41b30c61922e099a067ac5c137e745699a1aa (patch)
treed4cbc2313612e5f6bc135ceb8cf520cd19b89b20 /src/nvim/misc1.c
parent6383ea6e8e14350432f1fc7da519b54d0ed67f8c (diff)
downloadrneovim-e0e41b30c61922e099a067ac5c137e745699a1aa.tar.gz
rneovim-e0e41b30c61922e099a067ac5c137e745699a1aa.tar.bz2
rneovim-e0e41b30c61922e099a067ac5c137e745699a1aa.zip
ui: Remove/adapt some old code for a big UI refactor
- Remove abstract_ui global, now it is always active - Remove some terminal handling code - Remove unused functions - Remove HAVE_TGETENT/TERMINFO/TERMIOS/IOCTL #ifdefs - Remove tgetent/terminfo from version.c - Remove curses/terminfo dependencies - Only start/stop termcap when starting/exiting the program - msg_use_printf will return true if there are no attached UIs( messages will be written to stdout) - Remove `ex_winpos`(implement `:winpos` with `ex_ni`)
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 383e2bf6a5..a7e471625b 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -2395,11 +2395,6 @@ int get_keystroke(void)
} else if (len > 0)
++waited; /* keep track of the waiting time */
- /* Incomplete termcode and not timed out yet: get more characters */
- if ((n = check_termcode(1, buf, buflen, &len)) < 0
- && (!p_ttimeout || waited * 100L < (p_ttm < 0 ? p_tm : p_ttm)))
- continue;
-
if (n == KEYLEN_REMOVED) { /* key code removed */
if (must_redraw != 0 && !need_wait_return && (State & CMDLINE) == 0) {
/* Redrawing was postponed, do it now. */
@@ -3301,28 +3296,6 @@ home_replace_save (
return dst;
}
-void prepare_to_exit(void)
-{
-#if defined(SIGHUP) && defined(SIG_IGN)
- /* Ignore SIGHUP, because a dropped connection causes a read error, which
- * makes Vim exit and then handling SIGHUP causes various reentrance
- * problems. */
- signal(SIGHUP, SIG_IGN);
-#endif
-
- {
- windgoto((int)Rows - 1, 0);
-
- /*
- * Switch terminal mode back now, so messages end up on the "normal"
- * screen (if there are two screens).
- */
- settmode(TMODE_COOK);
- stoptermcap();
- out_flush();
- }
-}
-
/*
* Preserve files and exit.
* When called IObuff must contain a message.
@@ -3340,9 +3313,6 @@ void preserve_exit(void)
}
really_exiting = true;
-
- prepare_to_exit();
-
out_str(IObuff);
screen_start(); // don't know where cursor is now
out_flush();