diff --git a/mods/art/LOGPMPT.ANS b/mods/art/LOGPMPT.ANS new file mode 100644 index 00000000..e8547956 Binary files /dev/null and b/mods/art/LOGPMPT.ANS differ diff --git a/mods/art/PRELOGAD.ANS b/mods/art/PRELOGAD.ANS new file mode 100644 index 00000000..f867c506 Binary files /dev/null and b/mods/art/PRELOGAD.ANS differ diff --git a/mods/menu.hjson b/mods/menu.hjson index c11e6a39..6dbd0386 100644 --- a/mods/menu.hjson +++ b/mods/menu.hjson @@ -120,8 +120,46 @@ } } - logoff: { + // :TODO: Prompt Yes/No for logoff confirm + fullLogoffSequence: { + desc: Logging Off + prompt: logoffConfirmation + submit: [ + { + value: { promptValue: 0 } + action: @menu:fullLogoffSequencePreAd + } + { + value: { promptValue: 1 } + action: @systemMethod:prevMenu + } + ] + } + + fullLogoffSequencePreAd: { + art: PRELOGAD + desc: Logging Off + next: fullLogoffSequenceRandomBoardAd + options: { + cls: true + nextTimeout: 1500 + } + } + + fullLogoffSequenceRandomBoardAd: { + art: OTHRBBS + desc: Logging Off + next: logoff + options: { + baudRate: 57600 + pause: true + cls: true + } + } + + logoff: { art: LOGOFF + desc: Logging Off next: @systemMethod:logoff } /* @@ -230,7 +268,10 @@ } } + // // SSH specialization of NUA + // Canceling this form logs off vs falling back to matrix + // newUserApplicationSsh: { art: NUA fallback: logoff @@ -501,7 +542,7 @@ submit: [ { value: { command: "G" } - action: @menu:logoff + action: @menu:fullLogoffSequence } { value: { command: "D" } diff --git a/mods/prompt.hjson b/mods/prompt.hjson index 10cc9ec9..8e0b3ebc 100644 --- a/mods/prompt.hjson +++ b/mods/prompt.hjson @@ -32,6 +32,19 @@ } } }, + + logoffConfirmation: { + art: LOGPMPT + mci: { + TM1: { + argName: promptValue + items: [ "yes", "no" ] + focus: true + hotKeys: { Y: 0, N: 1 } + } + } + } + "menuCommand" : { art: MNUPRMT "mci" : {