Cursor Flash timing

Blitz3D Forums/Blitz3D Programming/Cursor Flash timing

dna(Posted 2017) [#1]
Hey.

I know this might be redundant but, since the search function is disabled, I wanted to know how to control the flash rate of the cursor within a program.
;add blinking cursor and show line
CURBL=Not CURBL;cccursorblink=cccursorblink-1
;If cccursorblink <= 1 Then cccursorblink = ccursorblinkrate
If CURBL=1;If cccursorblink < ccursorblinkrate/2  
	Text ccinputxloc,ccinputyloc,ccinputtext$+ccstring$+"_":;VWait
Else 
	Text ccinputxloc,ccinputyloc,ccinputtext$+ccstring$:;VWait
EndIf


I used some code that was posted but the routine does not allow me to control the flash rate so that there's equal time on, equal time off.
I tried the VWAIT function but got no results.

Any help is appreciated.


Matty(Posted 2017) [#2]
in your main loop:
something like that would work...
cls
;do all game updates
if millisecs()>blinktime then 
	blinkon = not blinkon
	blinktime = millisecs() + blinkdelay
if blinkon then 
	text x,y,inputtext$+"_" 
else
	text x,y,inputtext$
endif

flip



Cocopino(Posted 2017) [#3]
@search disabled:
Google has some nice features built in, e.g.

site:blitzmax.com blink cursor



dna(Posted February) [#4]
How long will the search be disabled?


Kryzon(Posted February) [#5]
How long will the search be disabled?

http://www.blitzbasic.com/Community/posts.php?topic=107699#1335319