Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hiding the cursor in Pascal
#1
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)
?
In a race between a rock and a pig, don't varnish your clams." -- "Dilbert"
Reply
#2
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. }
Reply
#3
I don't use Pascal, but this looks promising...
http://www.bsdg.org/swag/CURSOR/0004.PAS.html
Reply
#4
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.
In a race between a rock and a pig, don't varnish your clams." -- "Dilbert"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)