Commit 79a62624 authored by rswindell's avatar rswindell
Browse files

Create new user.misc bit: NOPAUSESPIN to disable the spinning cursor on pause

prompts on a per-user basis.
Eliminated unused node_misc bits and other constant definitions.
parent 3c56b91f
......@@ -517,7 +517,7 @@ void sbbs_t::pause()
rioctl(IOFI);
bputs(text[Pause]);
j=bstrlen(text[Pause]);
if(sys_status&SS_USERON && !(useron.misc&WIP)
if(sys_status&SS_USERON && !(useron.misc&(WIP|NOPAUSESPIN))
&& !(cfg.node_misc&NM_NOPAUSESPIN))
l|=K_SPIN;
ch=getkey(l);
......
......@@ -173,24 +173,11 @@ typedef struct {
#define SM_SYSVDELM (1L<<31) /* Sysops can see deleted msgs */
/* Different bits in node_misc */
#define NM_ANSALARM (1<<0) /* Alarm locally on answer */
#define NM_WFCSCRN (1<<1) /* Wait for call screen */
#define NM_WFCMSGS (1<<2) /* Include total messages/files on WFC */
#define NM_LCL_EDIT (1<<3) /* Use local editor to create messages */
#define NM_EMSOVL (1<<4) /* Use expanded memory of overlays */
#define NM_WINOS2 (1<<5) /* Use Windows/OS2 time slice API call */
#define NM_INT28 (1<<6) /* Make int 28 DOS idle calls */
#define NM_NODV (1<<7) /* Don't detect and use DESQview API */
#define NM_NO_NUM (1<<8) /* Don't allow logons by user number */
#define NM_LOGON_R (1<<9) /* Allow logons by user real name */
#define NM_LOGON_P (1<<10) /* Secure logons (always ask for password) */
#define NM_NO_LKBRD (1<<11) /* No local keyboard (at all) */
#define NM_SYSPW (1<<12) /* Protect WFC keys and Alt keys with SY: */
#define NM_NO_INACT (1<<13) /* No local inactivity alert/logoff */
#define NM_NOBEEP (1<<14) /* Don't beep locally */
#define NM_LOWPRIO (1<<15) /* Always use low priority input */
#define NM_7BITONLY (1L<<16) /* Except 7-bit input only (E71 terminals) */
#define NM_RESETVID (1L<<17) /* Reset video mode between callers? */
#define NM_NOPAUSESPIN (1L<<18) /* No spinning cursor at pause prompt */
#define NM_CLOSENODEDAB (1L<<19) /* Keep node.dab file closed (for Samba) */
......@@ -464,9 +451,6 @@ typedef enum { /* Values for xtrn_t.event */
#define CON_DELETELINE (1<<17) /* Deleted line, exiting from getstr() */
/* Number of milliseconds */
#define DELAY_HANGUP 250 /* Delay before modem drops carrier */
#define DELAY_MDMTLD 500 /* Delay to give each ~ in modem strings */
#define DELAY_SPIN 10 /* Delay for the spinning cursor */
#define DELAY_AUTOHG 1500 /* Delay for auto-hangup (xfer) */
#define SEC_LOGON 1800 /* 30 minutes allowed to logon */
......@@ -629,6 +613,7 @@ typedef enum { /* Values for xtrn_t.event */
#define WIP (1L<<21) /* Supports WIP terminal emulation */
#define AUTOLOGON (1L<<22) /* AutoLogon via IP */
#define HTML (1L<<23) /* Using Deuce's HTML terminal */
#define NOPAUSESPIN (1L<<24) /* No spinning cursor at pause prompt */
#define CLREOL 256 /* Character to erase to end of line */
......
......@@ -781,7 +781,7 @@ void sbbs_t::maindflts(user_t* user)
bprintf(text[UserDefaultsHotKey]
,user->misc&COLDKEYS ? text[Off] : text[On]);
bprintf(text[UserDefaultsCursor]
,user->misc&SPIN ? text[On] : text[Off]);
,user->misc&SPIN ? text[On] : user->misc&NOPAUSESPIN ? text[Off] : "Pause Prompt Only");
bprintf(text[UserDefaultsCLS]
,user->misc&CLRSCRN ? text[On] : text[Off]);
bprintf(text[UserDefaultsAskNScan]
......@@ -905,6 +905,9 @@ void sbbs_t::maindflts(user_t* user)
break;
case 'S':
user->misc^=SPIN;
if(!(user->misc&SPIN))
if(!yesno("Spinning cursor on pause prompts"))
user->misc|=NOPAUSESPIN;
putuserrec(&cfg,user->number,U_MISC,8,ultoa(user->misc,str,16));
break;
case 'F':
......
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