Skip to content
Snippets Groups Projects
Commit d6bc72c5 authored by rswindell's avatar rswindell
Browse files

Disable sbbs handling of the following control-keys and restore the

control key settings upon terminatation (even an ungraceful one):
Ctrl-K/P/T/U/Z
parent 985f63dd
No related branches found
No related tags found
No related merge requests found
...@@ -747,6 +747,12 @@ function init() { ...@@ -747,6 +747,12 @@ function init() {
console_attr = console.attributes; console_attr = console.attributes;
bbs.sys_status|=SS_MOFF; bbs.sys_status|=SS_MOFF;
console.clear(LIGHTGRAY); console.clear(LIGHTGRAY);
js.on_exit("console.ctrlkey_passthru = " + console.ctrlkey_passthru);
console.ctrlkey_passthru|=(1<<11); // Disable Ctrl-K handling in sbbs
console.ctrlkey_passthru|=(1<<16); // Disable Ctrl-P handling in sbbs
console.ctrlkey_passthru|=(1<<20); // Disable Ctrl-T handling in sbbs
console.ctrlkey_passthru|=(1<<21); // Disable Ctrl-U handling in sbbs
console.ctrlkey_passthru|=(1<<26); // Disable Ctrl-Z handling in sbbs
} }
function main() { function main() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment