Commit 2411b2d7 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Spinning cursor over the hardware cursor - disabled.

Define SPINNING_CURSOR_OVER_HARDWARE_CURSOR to enable this experimental
feature. I'm not sure I like it better than the way the spinning cursor
has been displayed for decades (to the left of the hardware cursor).
parent ec8aea6a
......@@ -61,19 +61,30 @@ char sbbs_t::getkey(long mode)
mode|=(useron.misc&SPIN);
lncntr=0;
timeout=time(NULL);
#if !defined SPINNING_CURSOR_OVER_HARDWARE_CURSOR
if(mode&K_SPIN)
outchar(' ');
#endif
do {
if(sys_status&SS_ABORT) {
if(mode&K_SPIN) /* back space once if on spinning cursor */
if(mode&K_SPIN) {
#if defined SPINNING_CURSOR_OVER_HARDWARE_CURSOR
bputs(" \b");
#else
backspace();
#endif
}
return(0);
}
if(mode&K_SPIN) {
#if !defined SPINNING_CURSOR_OVER_HARDWARE_CURSOR
outchar('\b');
#endif
outchar(cursor[(c++) % cursors]);
#if defined SPINNING_CURSOR_OVER_HARDWARE_CURSOR
outchar('\b');
#endif
}
ch=inkey(mode,mode&K_SPIN ? 200:1000);
if(sys_status&SS_ABORT)
......@@ -86,8 +97,13 @@ char sbbs_t::getkey(long mode)
continue;
if(mode&K_NOEXASC && ch&0x80)
continue;
if(mode&K_SPIN)
if(mode&K_SPIN) {
#if defined SPINNING_CURSOR_OVER_HARDWARE_CURSOR
bputs(" \b");
#else
backspace();
#endif
}
if(mode&K_COLD && ch>' ' && useron.misc&COLDKEYS) {
if(mode&K_UPPER)
outchar(toupper(ch));
......
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