diff options
-rw-r--r-- | pttbbs/mbbsd/menu.c | 6 | ||||
-rw-r--r-- | pttbbs/mbbsd/psb.c | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/menu.c b/pttbbs/mbbsd/menu.c index b6327b12..e26a987e 100644 --- a/pttbbs/mbbsd/menu.c +++ b/pttbbs/mbbsd/menu.c @@ -565,14 +565,14 @@ domenu(int menu_index, const char *cmdtitle, int cmd, const commands_t cmdtable[ show_status(); refscreen = NA; } - cursor_clear(decide_menu_row(cmdtable) + pos, menu_column); + n = pos = -1; while (++n <= (lastcmdptr = i)) if (CheckMenuPerm(cmdtable[n].level)) pos++; - cursor_show(decide_menu_row(cmdtable) + pos, menu_column); - } while (((cmd = vkey()) != EOF) || refscreen); + cmd = cursor_key(decide_menu_row(cmdtable) + pos, menu_column); + } while (cmd != EOF || refscreen); abort_bbs(0); } diff --git a/pttbbs/mbbsd/psb.c b/pttbbs/mbbsd/psb.c index 4465e405..1dab99c2 100644 --- a/pttbbs/mbbsd/psb.c +++ b/pttbbs/mbbsd/psb.c @@ -66,7 +66,9 @@ psb_default_cursor(int y, int curr GCC_UNUSED, void * ctx GCC_UNUSED) { #ifdef USE_PFTERM outs("กด\b"); #else - cursor_show(y, 0); + // simulate but do not call cursor_show. + mvouts(y, 0, STR_CURSOR); + move(y, 1); #endif return 0; } |