Personal Computer News


Keep Up With The Flashing

Categories: Letter

 
Author: Campbell Black
Published in Personal Computer News #065

Keep Up With The Flashing

Anyone tired of the Spectrum's FLASH command may like to try this routine in their programs:

100 PRINT AT X,Y; OVER 1; "PRESS A KEY": PAUSE: IF INKEYS = "" THEN GOTO 100

Where X and Y are the co-ordinates of the position you want the text printed at.

The flashing will continue until a key is pressed.

If you use this as part of a menu routine, for example, make sure that it is the last line to be executed before a key needs to be pressed.

You can alter the PAUSE value to give different flashing rates.

Campbell Black, Juniper Green, Midlothian

Campbell Black