diff options
author | ache <ache@FreeBSD.org> | 1998-04-28 06:22:20 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1998-04-28 06:22:20 +0000 |
commit | 27ef633cd3f7fd5fb6cb033edd2c1747a6e59acb (patch) | |
tree | 6dc2ca04460e2afc2586db7905a62d8345684052 /contrib/libreadline/terminal.c | |
parent | 53ee3efdd804d38a5c57372c0722804607ceb256 (diff) | |
download | FreeBSD-src-27ef633cd3f7fd5fb6cb033edd2c1747a6e59acb.zip FreeBSD-src-27ef633cd3f7fd5fb6cb033edd2c1747a6e59acb.tar.gz |
V2.2 import
Diffstat (limited to 'contrib/libreadline/terminal.c')
-rw-r--r-- | contrib/libreadline/terminal.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/contrib/libreadline/terminal.c b/contrib/libreadline/terminal.c index 5a8df89..c286696 100644 --- a/contrib/libreadline/terminal.c +++ b/contrib/libreadline/terminal.c @@ -434,13 +434,21 @@ rl_reset_terminal (terminal_name) } /* A function for the use of tputs () */ +#ifdef _MINIX +void +_rl_output_character_function (c) + int c; +{ + putc (c, _rl_out_stream); +} +#else /* !_MINIX */ int _rl_output_character_function (c) int c; { return putc (c, _rl_out_stream); } - +#endif /* !_MINIX */ /* Write COUNT characters from STRING to the output stream. */ void _rl_output_some_chars (string, count) @@ -519,18 +527,11 @@ ding () /* */ /* **************************************************************** */ -static int -outchar (c) - int c; -{ - return putc (c, rl_outstream); -} - void _rl_enable_meta_key () { if (term_has_meta && term_mm) - tputs (term_mm, 1, outchar); + tputs (term_mm, 1, _rl_output_character_function); } void @@ -538,7 +539,7 @@ _rl_control_keypad (on) int on; { if (on && term_ks) - tputs (term_ks, 1, outchar); + tputs (term_ks, 1, _rl_output_character_function); else if (!on && term_ke) - tputs (term_ke, 1, outchar); + tputs (term_ke, 1, _rl_output_character_function); } |