Commit 95ff7905 authored by rswindell's avatar rswindell
Browse files

The temporary pause toggle command (Ctrl-O) is now stored in the...

The temporary pause toggle command (Ctrl-O) is now stored in the sbbs_t::console member so re-loads of the user-record (due to external changes) won't seemingly-randomly toggle off the user's temp toggle.
parent 3a90bc53
......@@ -714,7 +714,7 @@ int sbbs_t::outchar(char ch)
if(outchar_esc==3)
outchar_esc=0;
if(lncntr==rows-1 && ((useron.misc&UPAUSE) || sys_status&SS_PAUSEON)
if(lncntr==rows-1 && ((useron.misc&(UPAUSE^(console&CON_PAUSEOFF))) || sys_status&SS_PAUSEON)
&& !(sys_status&(SS_PAUSEOFF|SS_ABORT))) {
lncntr=0;
pause();
......
......@@ -204,7 +204,7 @@ char sbbs_t::handle_ctrlkey(char ch, long mode)
switch(ch) {
case CTRL_O: /* Ctrl-O toggles pause temporarily */
useron.misc^=UPAUSE;
console^=CON_PAUSEOFF;
return(0);
case CTRL_P: /* Ctrl-P Private node-node comm */
if(!(sys_status&SS_USERON))
......
......@@ -474,9 +474,10 @@ typedef enum { /* Values for xtrn_t.event */
/* Console I/O Bits (console) */
#define CON_R_ECHO (1<<0) /* Echo remotely */
#define CON_R_ECHOX (1<<1) /* Echo X's to remote user */
#define CON_L_ECHOX 0 // Unused
#define CON_R_INPUT (1<<2) /* Accept input remotely */
#define CON_L_ECHO (1<<3) /* Echo locally */
#define CON_L_ECHOX (1<<4) /* Echo X's locally */
#define CON_PAUSEOFF (1<<4) // Temporary pause over-ride (same as UPAUSE)
#define CON_L_INPUT (1<<5) /* Accept input locally */
#define CON_RAW_IN (1<<8) /* Raw input mode - no editing capabilities */
#define CON_ECHO_OFF (1<<10) /* Remote & Local echo disabled for ML/MF */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment