save whitespace
This commit is contained in:
parent
7771520c05
commit
b99aa06d9b
150
edit.c
150
edit.c
@ -5,7 +5,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.30 2006/08/02 12:49:04 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.31 2006/08/02 12:54:48 tg Exp $");
|
||||
|
||||
/* tty driver characters we are interested in */
|
||||
typedef struct {
|
||||
@ -1133,87 +1133,87 @@ static const struct x_ftab x_ftab[] = {
|
||||
};
|
||||
|
||||
static struct x_defbindings const x_defbindings[] = {
|
||||
{ XFUNC_del_back, 0, MKCTRL('?') },
|
||||
{ XFUNC_del_bword, 1, MKCTRL('?') },
|
||||
{ XFUNC_eot_del, 0, MKCTRL('D') },
|
||||
{ XFUNC_del_back, 0, MKCTRL('H') },
|
||||
{ XFUNC_del_bword, 1, MKCTRL('H') },
|
||||
{ XFUNC_del_bword, 1, 'h' },
|
||||
{ XFUNC_mv_bword, 1, 'b' },
|
||||
{ XFUNC_mv_fword, 1, 'f' },
|
||||
{ XFUNC_del_fword, 1, 'd' },
|
||||
{ XFUNC_mv_back, 0, MKCTRL('B') },
|
||||
{ XFUNC_mv_forw, 0, MKCTRL('F') },
|
||||
{ XFUNC_search_char_forw, 0, MKCTRL(']') },
|
||||
{ XFUNC_search_char_back, 1, MKCTRL(']') },
|
||||
{ XFUNC_newline, 0, MKCTRL('M') },
|
||||
{ XFUNC_newline, 0, MKCTRL('J') },
|
||||
{ XFUNC_end_of_text, 0, MKCTRL('_') },
|
||||
{ XFUNC_abort, 0, MKCTRL('G') },
|
||||
{ XFUNC_prev_com, 0, MKCTRL('P') },
|
||||
{ XFUNC_next_com, 0, MKCTRL('N') },
|
||||
{ XFUNC_nl_next_com, 0, MKCTRL('O') },
|
||||
{ XFUNC_search_hist, 0, MKCTRL('R') },
|
||||
{ XFUNC_beg_hist, 1, '<' },
|
||||
{ XFUNC_end_hist, 1, '>' },
|
||||
{ XFUNC_goto_hist, 1, 'g' },
|
||||
{ XFUNC_mv_end, 0, MKCTRL('E') },
|
||||
{ XFUNC_mv_begin, 0, MKCTRL('A') },
|
||||
{ XFUNC_draw_line, 0, MKCTRL('L') },
|
||||
{ XFUNC_meta1, 0, MKCTRL('[') },
|
||||
{ XFUNC_meta2, 0, MKCTRL('X') },
|
||||
{ XFUNC_kill, 0, MKCTRL('K') },
|
||||
{ XFUNC_yank, 0, MKCTRL('Y') },
|
||||
{ XFUNC_meta_yank, 1, 'y' },
|
||||
{ XFUNC_literal, 0, MKCTRL('^') },
|
||||
{ XFUNC_comment, 1, '#' },
|
||||
{ XFUNC_del_back, 0, MKCTRL('?') },
|
||||
{ XFUNC_del_bword, 1, MKCTRL('?') },
|
||||
{ XFUNC_eot_del, 0, MKCTRL('D') },
|
||||
{ XFUNC_del_back, 0, MKCTRL('H') },
|
||||
{ XFUNC_del_bword, 1, MKCTRL('H') },
|
||||
{ XFUNC_del_bword, 1, 'h' },
|
||||
{ XFUNC_mv_bword, 1, 'b' },
|
||||
{ XFUNC_mv_fword, 1, 'f' },
|
||||
{ XFUNC_del_fword, 1, 'd' },
|
||||
{ XFUNC_mv_back, 0, MKCTRL('B') },
|
||||
{ XFUNC_mv_forw, 0, MKCTRL('F') },
|
||||
{ XFUNC_search_char_forw, 0, MKCTRL(']') },
|
||||
{ XFUNC_search_char_back, 1, MKCTRL(']') },
|
||||
{ XFUNC_newline, 0, MKCTRL('M') },
|
||||
{ XFUNC_newline, 0, MKCTRL('J') },
|
||||
{ XFUNC_end_of_text, 0, MKCTRL('_') },
|
||||
{ XFUNC_abort, 0, MKCTRL('G') },
|
||||
{ XFUNC_prev_com, 0, MKCTRL('P') },
|
||||
{ XFUNC_next_com, 0, MKCTRL('N') },
|
||||
{ XFUNC_nl_next_com, 0, MKCTRL('O') },
|
||||
{ XFUNC_search_hist, 0, MKCTRL('R') },
|
||||
{ XFUNC_beg_hist, 1, '<' },
|
||||
{ XFUNC_end_hist, 1, '>' },
|
||||
{ XFUNC_goto_hist, 1, 'g' },
|
||||
{ XFUNC_mv_end, 0, MKCTRL('E') },
|
||||
{ XFUNC_mv_begin, 0, MKCTRL('A') },
|
||||
{ XFUNC_draw_line, 0, MKCTRL('L') },
|
||||
{ XFUNC_meta1, 0, MKCTRL('[') },
|
||||
{ XFUNC_meta2, 0, MKCTRL('X') },
|
||||
{ XFUNC_kill, 0, MKCTRL('K') },
|
||||
{ XFUNC_yank, 0, MKCTRL('Y') },
|
||||
{ XFUNC_meta_yank, 1, 'y' },
|
||||
{ XFUNC_literal, 0, MKCTRL('^') },
|
||||
{ XFUNC_comment, 1, '#' },
|
||||
#if defined(TIOCSTI)
|
||||
{ XFUNC_stuff, 0, MKCTRL('T') },
|
||||
{ XFUNC_stuff, 0, MKCTRL('T') },
|
||||
#else
|
||||
{ XFUNC_transpose, 0, MKCTRL('T') },
|
||||
{ XFUNC_transpose, 0, MKCTRL('T') },
|
||||
#endif
|
||||
{ XFUNC_complete, 1, MKCTRL('[') },
|
||||
{ XFUNC_comp_list, 0, MKCTRL('I') },
|
||||
{ XFUNC_comp_list, 1, '=' },
|
||||
{ XFUNC_enumerate, 1, '?' },
|
||||
{ XFUNC_expand, 1, '*' },
|
||||
{ XFUNC_comp_file, 1, MKCTRL('X') },
|
||||
{ XFUNC_comp_comm, 2, MKCTRL('[') },
|
||||
{ XFUNC_list_comm, 2, '?' },
|
||||
{ XFUNC_list_file, 2, MKCTRL('Y') },
|
||||
{ XFUNC_set_mark, 1, ' ' },
|
||||
{ XFUNC_kill_region, 0, MKCTRL('W') },
|
||||
{ XFUNC_xchg_point_mark, 2, MKCTRL('X') },
|
||||
{ XFUNC_literal, 0, MKCTRL('V') },
|
||||
{ XFUNC_version, 1, MKCTRL('V') },
|
||||
{ XFUNC_prev_histword, 1, '.' },
|
||||
{ XFUNC_prev_histword, 1, '_' },
|
||||
{ XFUNC_set_arg, 1, '0' },
|
||||
{ XFUNC_set_arg, 1, '1' },
|
||||
{ XFUNC_set_arg, 1, '2' },
|
||||
{ XFUNC_set_arg, 1, '3' },
|
||||
{ XFUNC_set_arg, 1, '4' },
|
||||
{ XFUNC_set_arg, 1, '5' },
|
||||
{ XFUNC_set_arg, 1, '6' },
|
||||
{ XFUNC_set_arg, 1, '7' },
|
||||
{ XFUNC_set_arg, 1, '8' },
|
||||
{ XFUNC_set_arg, 1, '9' },
|
||||
{ XFUNC_fold_upper, 1, 'U' },
|
||||
{ XFUNC_fold_upper, 1, 'u' },
|
||||
{ XFUNC_fold_lower, 1, 'L' },
|
||||
{ XFUNC_fold_lower, 1, 'l' },
|
||||
{ XFUNC_fold_capitalize, 1, 'C' },
|
||||
{ XFUNC_fold_capitalize, 1, 'c' },
|
||||
{ XFUNC_complete, 1, MKCTRL('[') },
|
||||
{ XFUNC_comp_list, 0, MKCTRL('I') },
|
||||
{ XFUNC_comp_list, 1, '=' },
|
||||
{ XFUNC_enumerate, 1, '?' },
|
||||
{ XFUNC_expand, 1, '*' },
|
||||
{ XFUNC_comp_file, 1, MKCTRL('X') },
|
||||
{ XFUNC_comp_comm, 2, MKCTRL('[') },
|
||||
{ XFUNC_list_comm, 2, '?' },
|
||||
{ XFUNC_list_file, 2, MKCTRL('Y') },
|
||||
{ XFUNC_set_mark, 1, ' ' },
|
||||
{ XFUNC_kill_region, 0, MKCTRL('W') },
|
||||
{ XFUNC_xchg_point_mark, 2, MKCTRL('X') },
|
||||
{ XFUNC_literal, 0, MKCTRL('V') },
|
||||
{ XFUNC_version, 1, MKCTRL('V') },
|
||||
{ XFUNC_prev_histword, 1, '.' },
|
||||
{ XFUNC_prev_histword, 1, '_' },
|
||||
{ XFUNC_set_arg, 1, '0' },
|
||||
{ XFUNC_set_arg, 1, '1' },
|
||||
{ XFUNC_set_arg, 1, '2' },
|
||||
{ XFUNC_set_arg, 1, '3' },
|
||||
{ XFUNC_set_arg, 1, '4' },
|
||||
{ XFUNC_set_arg, 1, '5' },
|
||||
{ XFUNC_set_arg, 1, '6' },
|
||||
{ XFUNC_set_arg, 1, '7' },
|
||||
{ XFUNC_set_arg, 1, '8' },
|
||||
{ XFUNC_set_arg, 1, '9' },
|
||||
{ XFUNC_fold_upper, 1, 'U' },
|
||||
{ XFUNC_fold_upper, 1, 'u' },
|
||||
{ XFUNC_fold_lower, 1, 'L' },
|
||||
{ XFUNC_fold_lower, 1, 'l' },
|
||||
{ XFUNC_fold_capitalize, 1, 'C' },
|
||||
{ XFUNC_fold_capitalize, 1, 'c' },
|
||||
/* These for ansi arrow keys: arguablely shouldn't be here by
|
||||
* default, but its simpler/faster/smaller than using termcap
|
||||
* entries.
|
||||
*/
|
||||
{ XFUNC_meta2, 1, '[' },
|
||||
{ XFUNC_meta2, 1, 'O' },
|
||||
{ XFUNC_prev_com, 2, 'A' },
|
||||
{ XFUNC_next_com, 2, 'B' },
|
||||
{ XFUNC_mv_forw, 2, 'C' },
|
||||
{ XFUNC_mv_back, 2, 'D' },
|
||||
{ XFUNC_meta2, 1, '[' },
|
||||
{ XFUNC_meta2, 1, 'O' },
|
||||
{ XFUNC_prev_com, 2, 'A' },
|
||||
{ XFUNC_next_com, 2, 'B' },
|
||||
{ XFUNC_mv_forw, 2, 'C' },
|
||||
{ XFUNC_mv_back, 2, 'D' },
|
||||
};
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user