summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-15 20:55:53 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-15 20:55:53 +0800
commitb9b3b0cbcdeeb2c9cd1db68aaa4c2d019ee73496 (patch)
tree3ab2683b488fce87b54a7965a509c22ab399bb2c /mbbsd/edit.c
parent05edecab9694e409a989d29de84eb15b44c0bd9a (diff)
downloadpttbbs-b9b3b0cbcdeeb2c9cd1db68aaa4c2d019ee73496.tar
pttbbs-b9b3b0cbcdeeb2c9cd1db68aaa4c2d019ee73496.tar.gz
pttbbs-b9b3b0cbcdeeb2c9cd1db68aaa4c2d019ee73496.tar.bz2
pttbbs-b9b3b0cbcdeeb2c9cd1db68aaa4c2d019ee73496.tar.lz
pttbbs-b9b3b0cbcdeeb2c9cd1db68aaa4c2d019ee73496.tar.xz
pttbbs-b9b3b0cbcdeeb2c9cd1db68aaa4c2d019ee73496.tar.zst
pttbbs-b9b3b0cbcdeeb2c9cd1db68aaa4c2d019ee73496.zip
- (internal) migrate more code to visio API.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4168 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r--mbbsd/edit.c15
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);
}
/**