diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-24 04:14:20 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-24 04:14:20 +0800 |
commit | b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67 (patch) | |
tree | f56efde1e7cab917738b51472fc83df42c2cbf69 /mbbsd/name.c | |
parent | 8e3a8b2bcaadc819bf4bfa5fd7d36d8701d2076c (diff) | |
download | pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.gz pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.bz2 pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.lz pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.xz pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.zst pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.zip |
reoragnize functions
mprints, pprints -> mouts
remove useless refresh, pressanykey(), sleep,...
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1833 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/name.c')
-rw-r--r-- | mbbsd/name.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/mbbsd/name.c b/mbbsd/name.c index 9d467352..3cb2b698 100644 --- a/mbbsd/name.c +++ b/mbbsd/name.c @@ -264,7 +264,6 @@ namecomplete(char *prompt, char *data) prints("%*s", IDLEN + 1, ""); standend(); move(y, x); - refresh(); while ((ch = igetch()) != EOF) { if (ch == '\n' || ch == '\r') { @@ -309,8 +308,7 @@ namecomplete(char *prompt, char *data) len = MaxLen(morelist, p_lines); } if (morelist) { - move(b_lines, 0); - outs(msg_more); + vmsg(msg_more); } move(y, x); continue; @@ -356,7 +354,6 @@ namecomplete(char *prompt, char *data) raise(SIGHUP); /* jochang: don't know if this is * necessary... */ outc('\n'); - refresh(); if (clearbot) { move(2, 0); clrtobot(); @@ -434,8 +431,7 @@ usercomplete(char *prompt, char *data) len = UserMaxLen((arrptr) cwlist, cwnum, morenum, p_lines); } if (morenum < cwnum) { - move(b_lines, 0); - outs(msg_more); + vmsg(msg_more); } else morenum = 0; move(y, x); @@ -478,7 +474,6 @@ usercomplete(char *prompt, char *data) /* longjmp(byebye, -1); */ raise(SIGHUP); /* jochang: don't know if this is necessary */ outc('\n'); - refresh(); if (clearbot) { move(2, 0); clrtobot(); @@ -561,7 +556,6 @@ generalnamecomplete(char *prompt, char *data, int len, size_t nmemb, prints("%*s", IDLEN + 1, ""); standend(); move(y, x); - refresh(); ptr = 0; data[ptr] = 0; @@ -611,8 +605,7 @@ generalnamecomplete(char *prompt, char *data, int len, size_t nmemb, col += len + 2; } if (morelist != end + 1) { - move(b_lines, 0); - outs(msg_more); + vmsg(msg_more); } move(y, x); continue; @@ -651,7 +644,6 @@ generalnamecomplete(char *prompt, char *data, int len, size_t nmemb, } outc('\n'); - refresh(); if (clearbot) { move(2, 0); clrtobot(); |