summaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/terminal.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2004-10-18 07:02:42 +0000
committerache <ache@FreeBSD.org>2004-10-18 07:02:42 +0000
commit0a8076ac56fc245cdfb48a1ac83798a3d6086c30 (patch)
treef78c1227a8143a263e4974d6bf25cf0ccde0e716 /contrib/libreadline/terminal.c
parent001407b3a64c7fac1489a2ad6eeb2d23254b3e19 (diff)
downloadFreeBSD-src-0a8076ac56fc245cdfb48a1ac83798a3d6086c30.zip
FreeBSD-src-0a8076ac56fc245cdfb48a1ac83798a3d6086c30.tar.gz
Virgin import of GNU Readline 5.0
Diffstat (limited to 'contrib/libreadline/terminal.c')
-rw-r--r--contrib/libreadline/terminal.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/contrib/libreadline/terminal.c b/contrib/libreadline/terminal.c
index f3f5b6c..b95aea8 100644
--- a/contrib/libreadline/terminal.c
+++ b/contrib/libreadline/terminal.c
@@ -347,11 +347,7 @@ get_term_capabilities (bp)
register int i;
for (i = 0; i < NUM_TC_STRINGS; i++)
-# ifdef __LCC__
*(tc_strings[i].tc_value) = tgetstr ((char *)tc_strings[i].tc_var, bp);
-# else
- *(tc_strings[i].tc_value) = tgetstr (tc_strings[i].tc_var, bp);
-# endif
#endif
tcap_initialized = 1;
}
@@ -489,13 +485,13 @@ bind_termcap_arrow_keys (map)
xkeymap = _rl_keymap;
_rl_keymap = map;
- _rl_bind_if_unbound (_rl_term_ku, rl_get_previous_history);
- _rl_bind_if_unbound (_rl_term_kd, rl_get_next_history);
- _rl_bind_if_unbound (_rl_term_kr, rl_forward);
- _rl_bind_if_unbound (_rl_term_kl, rl_backward);
+ rl_bind_keyseq_if_unbound (_rl_term_ku, rl_get_previous_history);
+ rl_bind_keyseq_if_unbound (_rl_term_kd, rl_get_next_history);
+ rl_bind_keyseq_if_unbound (_rl_term_kr, rl_forward_char);
+ rl_bind_keyseq_if_unbound (_rl_term_kl, rl_backward_char);
- _rl_bind_if_unbound (_rl_term_kh, rl_beg_of_line); /* Home */
- _rl_bind_if_unbound (_rl_term_at7, rl_end_of_line); /* End */
+ rl_bind_keyseq_if_unbound (_rl_term_kh, rl_beg_of_line); /* Home */
+ rl_bind_keyseq_if_unbound (_rl_term_at7, rl_end_of_line); /* End */
_rl_keymap = xkeymap;
}
OpenPOWER on IntegriCloud