From 27d4d92897495bf45a060a9646e691f14eb05045 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 23 Dec 2015 16:41:49 -0700 Subject: [PATCH 1/4] Add logoffConfirmation prompt --- mods/prompt.hjson | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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" : { From 0e5b5f920382f3c27417ef7e69e83ca1c7fcd957 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 23 Dec 2015 16:42:38 -0700 Subject: [PATCH 2/4] Use logoff prompt --- mods/menu.hjson | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) 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" } From 25c6ca8b05d01eb478a62a2d5cb8fe72d1dc72d1 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 23 Dec 2015 16:45:03 -0700 Subject: [PATCH 3/4] Logoff pre bbs ad art --- mods/art/PRELOGAD.ANS | Bin 0 -> 212 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 mods/art/PRELOGAD.ANS diff --git a/mods/art/PRELOGAD.ANS b/mods/art/PRELOGAD.ANS new file mode 100644 index 0000000000000000000000000000000000000000..f867c5069b7111a902a633f279eacce40c1c1238 GIT binary patch literal 212 zcmb1+Hn27^ur@Z&u761SM literal 0 HcmV?d00001 From 30a69b2779c4db2aba3d5810aa759904d853792d Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 23 Dec 2015 16:47:02 -0700 Subject: [PATCH 4/4] Generic logoff prompt --- mods/art/LOGPMPT.ANS | Bin 0 -> 175 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 mods/art/LOGPMPT.ANS diff --git a/mods/art/LOGPMPT.ANS b/mods/art/LOGPMPT.ANS new file mode 100644 index 0000000000000000000000000000000000000000..e8547956277afb4322f74195b270d749cd1af947 GIT binary patch literal 175 zcmb1+Hn27^ur@Z&^~q1qPfN2`kd8LAHa5*w4e>RUjy5p`NkP~Kxm;4gj-k%31_lb$ l14aghriMmF#`+8l42+Bc42(b;2!uVId=^%08w~&e literal 0 HcmV?d00001