summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-11-11 11:50:39 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-11-11 11:50:39 +0800
commitf8693a60f734564c41dd6070a0ec23fc126275e2 (patch)
tree221ae3130009b11549b743e451321605aff7b89f
parenta29ff2de33116af3a1abd64913ec4b84a08fcf6a (diff)
downloadpttbbs-f8693a60f734564c41dd6070a0ec23fc126275e2.tar
pttbbs-f8693a60f734564c41dd6070a0ec23fc126275e2.tar.gz
pttbbs-f8693a60f734564c41dd6070a0ec23fc126275e2.tar.bz2
pttbbs-f8693a60f734564c41dd6070a0ec23fc126275e2.tar.lz
pttbbs-f8693a60f734564c41dd6070a0ec23fc126275e2.tar.xz
pttbbs-f8693a60f734564c41dd6070a0ec23fc126275e2.tar.zst
pttbbs-f8693a60f734564c41dd6070a0ec23fc126275e2.zip
* give_money should prompt and highligh the final input userid
* maybe doing this in namecomplete* is better... git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5022 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/cal.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/cal.c b/pttbbs/mbbsd/cal.c
index b5ee513a..b7dad5d7 100644
--- a/pttbbs/mbbsd/cal.c
+++ b/pttbbs/mbbsd/cal.c
@@ -298,6 +298,7 @@ give_money_ui(const char *userid)
int m = 0, mtax = 0, tries = 3, skipauth = 0;
static time4_t lastauth = 0;
const char *myid = cuser.userid;
+ const char *uid_prompt = "這位幸運兒的id: ";
// TODO prevent macros, we should check something here,
// like user pw/id/...
@@ -307,9 +308,11 @@ give_money_ui(const char *userid)
userid = NULL;
// XXX should we prevent editing if userid is already assigned?
- usercomplete2("這位幸運兒的id: ", id, userid);
-
- move(2, 0); clrtobot();
+ usercomplete2(uid_prompt, id, userid);
+ // redraw highlighted prompt
+ move(1, 0); clrtobot();
+ outs(uid_prompt); outs(ANSI_COLOR(1)); outs(id);
+ outs(ANSI_RESET "\n");
if (!id[0] || strcasecmp(cuser.userid, id) == 0)
{