summaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libreadline/terminal.c')
-rw-r--r--contrib/libreadline/terminal.c23
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);
}
OpenPOWER on IntegriCloud