lang@rex.cs.tulane.edu (Raymond Lang) (08/08/90)
How do you change the cursor character in Turbo Pascal version 3? What I want to do is change it to a space (i.e., make it invisible) and then for certain parts of the program change it back to an underline (make it visible again). Thanx in advance, Ray lang@rex.cs.tulane.edu
ts@uwasa.fi (Timo Salmi LASK) (08/08/90)
In article <3979@rex.cs.tulane.edu> lang@rex.cs.tulane.edu (Raymond Lang) writes: > >How do you change the cursor character in Turbo Pascal version 3? > >What I want to do is change it to a space (i.e., make it invisible) >and then for certain parts of the program change it back to an >underline (make it visible again). This may sound glib, but is not intended so. You change cursor *size* in TP 3.0 in the same way as you would in 4.0, 5.0, and 5.5. For the code see almost any good TP book, such as O'Brien, Turbo Pascal, the Complete Reference, Borland Osborne. And the cursor is not made up of characters at all, but of what is called scan lines. You also really get a newer version of TP, because you'll also have to detect the video adapter (if you want to make your routine general). These things are much easier under the later versions. Also, if you have 4.0, 5.0, or 5.5 you don't have to write the cursor routine at all, because there are PD units around that contain the code all ready. One (/pc/ts/tspas21.arc) can be anonymous ftp from our site. ................................................................... Prof. Timo Salmi (Moderating at anon. ftp site 128.214.12.3) School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun
eli@aspasia.gang.umass.edu (Eli Brandt) (08/09/90)
In article <3979@rex.cs.tulane.edu> lang@rex.cs.tulane.edu (Raymond Lang) writes: > >How do you change the cursor character in Turbo Pascal version 3? > >What I want to do is change it to a space (i.e., make it invisible) >and then for certain parts of the program change it back to an >underline (make it visible again). > >Thanx in advance, > >Ray >lang@rex.cs.tulane.edu There are several ways to do this, none of which are really good. You can turn the cursor off on EGA/VGA by tweaking the hardware, but this doesn't work on CGA. You can move the cursor off-screen, but you may still get some cursor-flicker when you move it back on to print something. The method I prefer is to park it offscreen and then never move it back on - just write directly to video memory. Faster, too, particularly in v3.0 Eli