summaryrefslogtreecommitdiffstats
path: root/mbbsd/gamble.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-31 11:43:10 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-31 11:43:10 +0800
commitbc46922d754ce249916b54f3398f66bf4c7ae9b1 (patch)
tree6d36d8276decb143d0f704c0181e12846cdb6342 /mbbsd/gamble.c
parentfe49c3a76b174403c43cca4420ff450dab47c293 (diff)
downloadpttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar
pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar.gz
pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar.bz2
pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar.lz
pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar.xz
pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar.zst
pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.zip
* fix ANSI in getdata/vgets prompts
* allow badpost filtering for everyone git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4805 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/gamble.c')
-rw-r--r--mbbsd/gamble.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c
index 93388e1f..a3d59236 100644
--- a/mbbsd/gamble.c
+++ b/mbbsd/gamble.c
@@ -258,7 +258,13 @@ openticket(int bid)
do {
do {
getdata(20, 0,
- ANSI_COLOR(1) "選擇中獎的號碼(0:不開獎 99:取消退錢)" ANSI_RESET ":", buf, 3, LCECHO);
+#ifdef USE_PFTERM
+ ANSI_COLOR(1) "選擇中獎的號碼(0:不開獎 99:取消退錢)"
+ ANSI_RESET ":"
+#else
+ "選擇中獎的號碼(0:不開獎 99:取消退錢):"
+#endif
+ , buf, 3, LCECHO);
bet = atoi(buf);
move(0, 0);
clrtoeol();
@@ -267,7 +273,13 @@ openticket(int bid)
unlockutmpmode();
return 0;
}
- getdata(21, 0, ANSI_COLOR(1) "再次確認輸入號碼" ANSI_RESET ":", buf, 3, LCECHO);
+ getdata(21, 0,
+#ifdef USE_PFTERM
+ ANSI_COLOR(1) "再次確認輸入號碼" ANSI_RESET ":"
+#else
+ "再次確認輸入號碼:"
+#endif
+ , buf, 3, LCECHO);
} while (bet != atoi(buf));
// before we fork to process,