diff options
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r-- | mbbsd/edit.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 78bad60c..93c1735e 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -434,6 +434,7 @@ show_phone_mode_panel(void) static void edit_msg(void) { + char buf[STRLEN]; int n = curr_buf->currpnt; if (curr_buf->ansimode) /* Thor: §@ ansi ½s¿è */ @@ -442,21 +443,17 @@ edit_msg(void) if (curr_buf->phone_mode) show_phone_mode_panel(); - move(b_lines, 0); - clrtoeol(); - outs( 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) "Â÷¶}"); - - prints( "ùø%s¢x%c%c%c%cùø %3d:%3d ", + snprintf(buf, sizeof(buf), + " (^Z/F1)»¡©ú (^P/^G)´¡¤J²Å¸¹/¹Ï¤ù (^X/^Q)Â÷¶}\t" + "ùø%s¢x%c%c%c%cùø%3d:%3d", curr_buf->insert_mode ? "´¡¤J" : "¨ú¥N", curr_buf->ansimode ? 'A' : 'a', curr_buf->indent_mode ? 'I' : 'i', curr_buf->phone_mode ? 'P' : 'p', curr_buf->raw_mode ? 'R' : 'r', curr_buf->currln + 1, n + 1); - outslr("", 78, ANSI_RESET, 0); + + vs_footer(" ½s¿è¤å³¹ ", buf); } /** |