How to hide the cursor?
- Posted by "Juergen Luethje" <j.lue at gmx.de> May 01, 2005
- 396 views
Hello all, in a console program in text mode, hiding the cursor doesn't work as expected:
include graphics.e cursor(NO_CURSOR) puts(1, "count :\n") puts(1, "rand(10):\n\n") puts(1, "Press ESC to exit ...") integer count count = 0 while get_key() != 27 do position(1, 11) print(1, count) position(2, 11) printf(1, "%2d", {rand(10)}) count += 1 end while
I tested this code under Windows 98, using Eu 2.5 interpreters. Using EX.EXE, the cursor actually is not visible, when the program runs in _full screen_ mode. But in a _DOS window_ as well as using EXW.EXE, the cursor is visible, which causes an annoying flickering. How can I hide the cursor in these situations? Regards, Juergen -- Have you read a good program lately?