From 7eaa99b4e6befa18984e4e0082666ef255b0f991 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 13 May 2022 14:57:12 +1000 Subject: [PATCH] Show a loading message, in case there is a delay when going to a new frame --- load/frame-ansi.js | 1 + load/frame-page.js | 1 + load/frame-viewdata.js | 1 + 3 files changed, 3 insertions(+) diff --git a/load/frame-ansi.js b/load/frame-ansi.js index 68209b2..7b89a6b 100644 --- a/load/frame-ansi.js +++ b/load/frame-ansi.js @@ -45,6 +45,7 @@ function FrameAnsi() { this.settings.LOGIN_ERROR = '\1n\1h\1RERROR LOGGING IN, PLEASE TRY AGAIN *00'; this.settings.CANCEL_MSG = '\1n\1h\1GPRESS 2 TO CANCEL'; this.settings.SYS_ERROR = '\1n\1h\1RSYSTEM ERROR DETECTED - TRY AGAIN OR TELL US *08'; + this.settings.LOADING = '\1n\1h\1Wloading...'; /** * Set the attribute at the current position diff --git a/load/frame-page.js b/load/frame-page.js index 138167c..f998538 100644 --- a/load/frame-page.js +++ b/load/frame-page.js @@ -152,6 +152,7 @@ PageFrame.prototype.getMessage = function(index) { */ PageFrame.prototype.load = function(filename) { log(LOG_DEBUG,'Loading FRAME from: '+filename+'.'+this.settings.ext); + this.sendBaseline('LOADING'); f = new File(system.mods_dir+'ansitex/text/'+filename+'.'+this.settings.ext); if (! f.exists || ! f.open('r')) { diff --git a/load/frame-viewdata.js b/load/frame-viewdata.js index adedbae..d4af755 100644 --- a/load/frame-viewdata.js +++ b/load/frame-viewdata.js @@ -62,6 +62,7 @@ function FrameViewdata() { this.settings.LOGIN_ERROR = ascii(27)+'AERROR LOGGING IN, PLEASE TRY AGAIN *00'; this.settings.CANCEL_MSG = ascii(27)+'BPRESS 2 TO CANCEL'; this.settings.SYS_ERROR = ascii(27)+'ASYS ERR, TRY AGAIN OR TELL US ON *08'; + this.settings.LOADING = VIEWDATA_MOSIAC_WHITE+'loading...'; var blp=0; // Length of data on the bottom line