diff options
author | ache <ache@FreeBSD.org> | 1994-12-12 03:23:04 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-12-12 03:23:04 +0000 |
commit | 101ec26d7eeca4fdde75aacb7706b1d5027a4404 (patch) | |
tree | 330544bf1027772588100e4417e5ef995790fe1a /gnu/lib/libreadline/signals.c | |
parent | 0184c7ba037026b52ee3c41d7cec30fdea92f4fa (diff) | |
download | FreeBSD-src-101ec26d7eeca4fdde75aacb7706b1d5027a4404.zip FreeBSD-src-101ec26d7eeca4fdde75aacb7706b1d5027a4404.tar.gz |
Upgrade to readline from bash 1.14.3
Diffstat (limited to 'gnu/lib/libreadline/signals.c')
-rw-r--r-- | gnu/lib/libreadline/signals.c | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/gnu/lib/libreadline/signals.c b/gnu/lib/libreadline/signals.c index a9fda5c..ae11373 100644 --- a/gnu/lib/libreadline/signals.c +++ b/gnu/lib/libreadline/signals.c @@ -58,16 +58,10 @@ extern int errno; #include "readline.h" #include "history.h" -static void cr (); - extern int readline_echoing_p; extern int rl_pending_input; -extern char *term_cr; - extern int _rl_meta_flag; -extern int _rl_output_character_function (); - extern void free_undo_list (); #if defined (VOID_SIGHANDLER) @@ -107,9 +101,7 @@ rl_handle_sigwinch (sig) if (readline_echoing_p) { _rl_set_screen_size (fileno (rl_instream), 1); - - cr (); /* was crlf () */ - rl_forced_update_display (); + _rl_redisplay_after_sigwinch (); } if (old_sigwinch && @@ -276,28 +268,20 @@ rl_clear_signals () #if !defined (SHELL) #if defined (SIGTSTP) - signal (SIGTSTP, old_tstp); + rl_set_sighandler (SIGTSTP, old_tstp); #endif #if defined (SIGTTOU) - signal (SIGTTOU, old_ttou); - signal (SIGTTIN, old_ttin); + rl_set_sighandler (SIGTTOU, old_ttou); + rl_set_sighandler (SIGTTIN, old_ttin); #endif /* SIGTTOU */ #endif /* !SHELL */ #if defined (SIGWINCH) - signal (SIGWINCH, old_sigwinch); + rl_set_sighandler (SIGWINCH, old_sigwinch); #endif return 0; } - -/* Move to the start of the current line. */ -static void -cr () -{ - if (term_cr) - tputs (term_cr, 1, _rl_output_character_function); -} #endif /* HANDLE_SIGNALS */ |