Qbasicnews.com

Full Version: Hiding the cursor in Pascal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I'm on an ordinary DOS text screen, 80x25, is there any way to hide the cursor as it flashes around the screen with
Code:
gotoxy(x,y)
?
Quote:When I'm on an ordinary DOS text screen, 80x25, is there any way to hide the cursor as it flashes around the screen with
Code:
gotoxy(x,y)
?

There's a memory hack to do it, and probably another command that I don't remember... but the easiest way by far is to just stick it in the bottom right corner and then make the foreground and background colours on that square both the same:
Code:
mem[&B800:4000] := 0;
{ may have to diddle that second number a bit, I don't remember the exact formula, but it's two bytes per character on the screen, the second of which is colour, the two nibbles are fore and background. }
I don't use Pascal, but this looks promising...
http://www.bsdg.org/swag/CURSOR/0004.PAS.html
Quote:There's a memory hack to do it, and probably another command that I don't remember... but the easiest way by far is to just stick it in the bottom right corner and then make the foreground and background colours on that square both the same:

What I meant was that I have it flashing all over the place, I don't just want to hide it for a while. I'm drawing an array of 80x20 characters on the screen, and you can see the cursor blinking around as I move it to print the letters.

Quote: don't use Pascal, but this looks promising...
http://www.bsdg.org/swag/CURSOR/0004.PAS.html

Thanks. This looks good.