summaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-11-23 19:12:30 -0500
committerChet Ramey <chet.ramey@case.edu>2011-11-23 19:12:30 -0500
commitbcd7f75a2bc2f7c67c9cd6899ff546afa45cbba4 (patch)
tree71f09c9e7e2a9be3c3aa79e31cb48d7069d8a979 /terminal.c
parent753c336c548b9a1358058751c6288b6e31458d89 (diff)
downloadreadline-bcd7f75a2bc2f7c67c9cd6899ff546afa45cbba4.tar.gz
Readline-5.0 import
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/terminal.c b/terminal.c
index f3f5b6c..b95aea8 100644
--- a/terminal.c
+++ b/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;
}