summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 127de100..bd4ed6b8 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -23,7 +23,6 @@ u_loginview()
{
int i;
unsigned int pbits = cuser.loginview;
- char choice[5];
clear();
move(4, 0);
@@ -32,9 +31,9 @@ u_loginview()
loginview_file[i][1], ((pbits >> i) & 1 ? "ˇ" : "X"));
clrtobot();
- while (getdata(b_lines - 1, 0, "請按 [A-N] 切換設定,按 [Return] 結束:",
- choice, 3, LCECHO)) {
- i = choice[0] - 'a';
+ while ((i = getkey("請按 [A-N] 切換設定,按 [Return] 結束:"))!='\r')
+ {
+ i = i - 'a';
if (i >= NUMVIEWFILE || i < 0)
bell();
else {