diff options
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r-- | mbbsd/edit.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 124d7d71..f0aa77e1 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -405,10 +405,11 @@ edit_msg(void) move(b_lines, 0); clrtoeol(); - prints(ANSI_COLOR(37;44) " ½s¿è¤å³¹ " ANSI_COLOR(31;47) " (^Z)" ANSI_COLOR(30) "»¡©ú " - ANSI_COLOR(31;47) "(^P)" ANSI_COLOR(30) "²Å¸¹ " - ANSI_COLOR(31;47) "(^G)" ANSI_COLOR(30) "´¡¤J¹Ï¤å®w " ANSI_COLOR(31) "(^X,^Q)" - ANSI_COLOR(30) "Â÷¶}ùø%s¢x%c%c%c%cùø %3d:%3d " ANSI_RESET, + prints( ANSI_COLOR(37;44) " ½s¿è¤å³¹ " + ANSI_COLOR(31;47) " (^Z/F1)" ANSI_COLOR(30) "»¡©ú " + ANSI_COLOR(31;47) "(^P/^G)" ANSI_COLOR(30) "´¡¤J²Å¸¹/¹Ï¤ù " + ANSI_COLOR(31) "(^X/^Q)" ANSI_COLOR(30) "Â÷¶}" + "ùø%s¢x%c%c%c%cùø %3d:%3d " ANSI_RESET, curr_buf->insert_mode ? "´¡¤J" : "¨ú¥N", curr_buf->ansimode ? 'A' : 'a', curr_buf->indent_mode ? 'I' : 'i', @@ -2618,6 +2619,7 @@ vedit(char *fpath, int saveheader, int *islocal) } switch (ch) { + case KEY_F10: case Ctrl('X'): /* Save and exit */ tmp = write_file(fpath, saveheader, islocal); if (tmp != KEEP_EDITING) { @@ -2633,6 +2635,13 @@ vedit(char *fpath, int saveheader, int *islocal) curr_buf->oldcurrline = curr_buf->currline; curr_buf->redraw_everything = YEA; break; + case KEY_F5: + prompt_goto_line(); + break; + case KEY_F8: + t_users(); + curr_buf->redraw_everything = YEA; + break; case Ctrl('W'): block_cut(); // curr_buf->oldcurrline is freed in block_cut, and currline is @@ -2758,6 +2767,7 @@ vedit(char *fpath, int saveheader, int *islocal) break; #endif case Ctrl('S'): + case KEY_F3: search_str(0); break; case Ctrl('U'): @@ -2822,6 +2832,7 @@ vedit(char *fpath, int saveheader, int *islocal) curr_buf->redraw_everything = YEA; break; + case KEY_F1: case Ctrl('Z'): /* Help */ more("etc/ve.hlp", YEA); curr_buf->redraw_everything = YEA; |