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

Handle hot key recursion, spinning cursor, saving/restoring current line, etc.

parent e41e2de4
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,23 @@ char sbbs_t::inkey(long mode)
if(cfg.hotkey[i]->key==ch)
break;
if(i<cfg.total_hotkeys) {
if(hotkey_inside>1) /* only allow so much recursion */
return(0);
if(mode&K_SPIN)
bputs("\b ");
if(!(sys_status&SS_SPLITP)) {
SAVELINE;
attr(LIGHTGRAY);
CRLF;
}
hotkey_inside++;
external(cfg.hotkey[i]->cmd,0);
hotkey_inside--;
if(!(sys_status&SS_SPLITP)) {
CRLF;
RESTORELINE;
}
lncntr=0;
return(0);
}
if(ch==CTRL_O) { /* Ctrl-O toggles pause temporarily */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment