Commit c5433727 authored by rswindell's avatar rswindell
Browse files

Introduced K_NOSPIN mode flag for getkey() - to over-ride (temporarily

disable) user's spinning cursor setting.
parent 4f7aa519
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -316,6 +316,7 @@ var K_NOECHO =(1<<17) /* Don't echo input */
var K_TAB =(1<<18) /* Treat TAB key as CR */
var K_LEFTEXIT =(1<<19) /* Allow exit from getstr() with backspace */
var K_USEOFFSET =(1<<20) /* Use console.getstr_offset with getstr() */
var K_NOSPIN =(1<<21) /* Do not honor user's spinning cursor */
/********************************************/
/********************************************/
......
......@@ -2,7 +2,7 @@
# Baja include file defining various Synchronet related constants
# $id: $
# $Id$
# @format.tab-size 8, @format.use-tabs true
......@@ -165,6 +165,9 @@
!define K_COLD .16 # Possible cold key mode
!define K_NOECHO .17 # Don't echo input
!define K_TAB .18 # Treat TAB as CR
!define K_LEFTEXIT .19
!define K_USEOFFSET .20
!define K_NOSPIN .21 # Ignore user's spinning cursor setting
# Bits in 'mode' for PRINTFILE function
!define P_NOABORT .0 # Disallows abortion of a message
......
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -54,7 +54,7 @@ char sbbs_t::getkey(long mode)
return(0);
}
sys_status&=~SS_ABORT;
if((sys_status&SS_USERON || action==NODE_DFLT) && !(mode&K_GETSTR))
if((sys_status&SS_USERON || action==NODE_DFLT) && !(mode&(K_GETSTR|K_NOSPIN)))
mode|=(useron.misc&SPIN);
lncntr=0;
timeout=time(NULL);
......
......@@ -676,6 +676,7 @@ typedef enum { /* Values for xtrn_t.event */
#define K_TAB (1L<<18) /* Treat TAB key as CR */
#define K_LEFTEXIT (1L<<19) /* Allow exit by backspacing/arrowing left */
#define K_USEOFFSET (1L<<20) /* Use getstr_offset for cursor position */
#define K_NOSPIN (1L<<21) /* Do not honor the user's spinning cursor */
/* Bits in 'mode' for putmsg and printfile */
#define P_NOABORT (1<<0) /* Disallows abortion of a message */
......
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