diff options
author | Eli Zaretskii <eliz@gnu.org> | 2003-12-30 07:25:18 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2003-12-30 07:25:18 +0000 |
commit | b0f0a30e296012e61e6b80787fa6a3b6add66d51 (patch) | |
tree | 0afcb7de9f2ce1095d023346692469020c60fed1 /readline/display.c | |
parent | 6d53e9818ab42c294ba76dcc489feabba9e1e3aa (diff) | |
download | gdb-b0f0a30e296012e61e6b80787fa6a3b6add66d51.zip gdb-b0f0a30e296012e61e6b80787fa6a3b6add66d51.tar.gz gdb-b0f0a30e296012e61e6b80787fa6a3b6add66d51.tar.bz2 |
* readline.c (rl_save_state, rl_restore_state): Support systems
that don't define SIGWINCH.
* terminal.c (_rl_get_screen_size) [__DJGPP__]: Compute the
screen width and height using console I/O.
(_rl_init_terminal_io) [__MSDOS__]: Zero out all the _rl_term_*
variables. Convert to _rl_* naming scheme.
(_rl_set_cursor) [__MSDOS__]: Ifdef away this function.
* display.c (_rl_move_vert) [__MSDOS__]: Don't use undeclared
variable `l'. Use `delta' instead recomputing its value anew.
Assign -delta to i instead of the other way around.
Diffstat (limited to 'readline/display.c')
-rw-r--r-- | readline/display.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/readline/display.c b/readline/display.c index e151cf2..e7b7591 100644 --- a/readline/display.c +++ b/readline/display.c @@ -1642,10 +1642,10 @@ _rl_move_vert (to) #ifdef __MSDOS__ int row, col; - l = fflush (rl_outstream); /* make sure the cursor pos is current! */ + fflush (rl_outstream); /* make sure the cursor pos is current! */ ScreenGetCursor (&row, &col); - ScreenSetCursor ((row + to - _rl_last_v_pos), col); - delta = i; + ScreenSetCursor (row + delta, col); + i = -delta; /* in case someone wants to use it after the loop */ #else /* !__MSDOS__ */ if (_rl_term_up && *_rl_term_up) for (i = 0; i < -delta; i++) |