diff --git a/core/menu_module.js b/core/menu_module.js index 85b1737f..f1c8a1dc 100644 --- a/core/menu_module.js +++ b/core/menu_module.js @@ -218,11 +218,21 @@ MenuModule.prototype.finishedLoading = function() { self.client.gotoMenuModule( { name : self.menuConfig.next } ); }, this.menuConfig.options.nextTimeout); } else { - if(!_.isObject(self.menuConfig.form) && !_.isString(self.menuConfig.prompt) && - _.isString(self.menuConfig.action)) - { - menuUtil.handleAction(self.client, null, self.menuConfig); - } + var nextAction = function() { + if(!_.isObject(self.menuConfig.form) && !_.isString(self.menuConfig.prompt) && + _.isString(self.menuConfig.action)) + { + menuUtil.handleAction(self.client, null, self.menuConfig); + } + }; + if('end' === self.menuConfig.pause) { + // :TODO: really need a client.term.pause() that uses the correct art/etc. + self.client.waitForKeyPress(function kp(ch, key) { + nextAction(); + }); + } else { + nextAction(); + } } }; \ No newline at end of file diff --git a/mods/menu.json b/mods/menu.json index 4d9b4c2f..459226ac 100644 --- a/mods/menu.json +++ b/mods/menu.json @@ -192,6 +192,12 @@ } }, "newUserActive" : { + "art" : "SO-CC1.ANS", + "options" : { "cls" : true }, + "action" : "@menu:currentUserStats", + "pause" : "end" + }, + "currentUserStats" : { "art" : "userstats", //"prompt" : "pause", "options" : { diff --git a/mods/prompt.json b/mods/prompt.json index f176d250..e31e34a6 100644 --- a/mods/prompt.json +++ b/mods/prompt.json @@ -39,8 +39,10 @@ */ }, "standard" : { + // any menu 'pause' will display this, pause for a key, then erase and move on "pause" : { "art" : "pause" + // :TODO: support mci mappings } }, "custom" : {