From cf2244102c312916b996309fb7f3d5cc830448f5 Mon Sep 17 00:00:00 2001 From: echicken <> Date: Fri, 17 Nov 2017 16:15:56 +0000 Subject: [PATCH] Cycle frame rather than progress_bar; bury cursor. --- xtrn/chat_pager/page_sysop.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/xtrn/chat_pager/page_sysop.js b/xtrn/chat_pager/page_sysop.js index 6159bcb57b..34ad2940c5 100644 --- a/xtrn/chat_pager/page_sysop.js +++ b/xtrn/chat_pager/page_sysop.js @@ -47,13 +47,16 @@ function await_page_response(settings, frame) { : get_node_response_time(valname) ); if (typeof val == 'number' && val > stime) answered = true; - frame.cycle(); + if (frame.cycle()) { + console.gotoxy(console.screen_columns, console.screen_rows); + } bbs.node_sync(); yield(); } progress_bar.set_progress(100); - progress_bar.cycle(); - progress_bar.close(); + if (frame.cycle()) { + console.gotoxy(console.screen_columns, console.screen_rows); + } return answered; } @@ -81,8 +84,10 @@ function main() { } else { frame.gotoxy(1, 3); frame.center(format(bbs.text(522).trim(), system.operator)); - console.pause(); + frame.cycle(); frame.close(); + console.gotoxy(1, frame.y + frame.height); + console.pause(); } bbs.sys_status = sys_stat; } -- GitLab