summaryrefslogtreecommitdiffstats
path: root/mbbsd/kaede.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-08 10:46:24 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-08 10:46:24 +0800
commita0f8ef1e2e04905908478088fc376435b770417c (patch)
treea96bd4096703e5d0bb0b9fe7c9499d0db7768070 /mbbsd/kaede.c
parentf55eaef82ab265772418a545f32fa2780468603b (diff)
downloadpttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar.gz
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar.bz2
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar.lz
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar.xz
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar.zst
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.zip
New style to specify ANSI escape commands.
First introduced by pmore, but this hard work (to transform all files to new style) is made by Rong-en Fan (rafan). Thanks! git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2796 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/kaede.c')
-rw-r--r--mbbsd/kaede.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c
index 43da0653..c0b1ed23 100644
--- a/mbbsd/kaede.c
+++ b/mbbsd/kaede.c
@@ -7,11 +7,11 @@ Ptt_prints(char *str, int mode)
char strbuf[256];
int r, w;
for( r = w = 0 ; str[r] != 0 && w < (sizeof(strbuf) - 1) ; ++r )
- if( str[r] != '\033' )
+ if( str[r] != ESC_CHR )
strbuf[w++] = str[r];
else{
if( str[++r] != '*' ){
- strbuf[w++] = '\033';
+ strbuf[w++] = ESC_CHR;
strbuf[w++] = str[r];
}
else{
@@ -51,7 +51,7 @@ Ptt_prints(char *str, int mode)
break;
/* It's saver not to send these undefined escape string.
default:
- strbuf[w++] = '\033';
+ strbuf[w++] = ESC_CHR;
strbuf[w++] = '*';
strbuf[w++] = str[r];
*/