-------------------------------------------------------------------------------
ighbahpooighbahpooighbahpoo   Wot  the  fuk ? ghbahpooighbahpooighbahpooi
ghbahpooighbahpooighbahpooi                         hbahpooighbahpooighbahpooig
hbahpooighbahpooighbahpooig  ۲ ۲ bahpooighbahpooighbahpooigh
bahpooighbahpooighbahpooigh     ۲    ۲ ahpooighbahpooighbahpooighb
ahpooighbahpooighbahpooighb     ۲    ۲ hpooighbahpooighbahpooighba
hpooighbahpooighbahpooighba    pooighbahpooighbahpooighbah
pooighbahpooighbahpooighbah         [CX93] ooighbahpooighbahpooighbahp
ooighbahpooighbahpooighbahp                   oighbahpooighbahpooighbahpo
pooighbahpooighbahpooighbah                       ooighbahpooighbahpooighbahi
----------------------------------------- ------------------------------------
Zen Amako                          July 1994                            File 14
-------------------------------------------------------------------------------

                                 Coding Corner!
                                  

    Ok,  How  do you get rid of the bloody cursor in textmode??  Well, I'm glad
you asked, I had a bit of trouble with that when I first started assembler, but
after a chat to King  Tech  and  a  read  of  some  other asm source I found my
solution. As a matter of fact, I've found various solutions, and here they are.
	
Solution To A Stupid Question (1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Set the scanline so you can't see it. (thx to kingtech)

	mov ah, 1
	mov ch, -1
	mov cl, -1
	int 10h
	
Neg 1 to Neg 1 seems like a nice...  size..  so that "should" make  the  cursor
invisible, but it may stuff up sometimes..  ie when in weird textmodes..  weird
monitors  or  weird  command  processors..   so  it does the job but is not too
reliable.  


Solution To A Stupid Question (2)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found this one in Lone Ranger/Acme's source!

	mov ah, 1
	mov ch, 32
	xor cl, cl
	int 10h
	
Hmm, same idea, change the scanline so it's virtually out of sight.


Solution To A Stupid Question (3)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This one I like, the best so far, thx to The Flamoots.

	mov ah, 1h
	mov cx, 0ff00h
	int 10h
	
Heheh, the funny thing is  that  again  it's  doing pretty much the same thing,
although I've found this method to be the most reliable.  Well done Flamooties!


Solution To A Stupid Question (4)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The last one is again from Kingtech, the old move the  cursor  off  the  screen
trick ;)

	mov al, 2h
	mov ch, -1
	mov cl, -1
	int 10h
	
This  moves  the cursor to the (x,y) location of -1,-1, it ONLY works in static
screens such as displaying  an  ansi/ascii,  as  obviously the cursor will move
from that position later.


	I have also seen a few routines to actually "turn" the cursor off,  as  far
as I know, it never seems to work for me!  Anyway, the above methods are pretty
easy to do, and reliable, and you can use them in your pascal and c too..

	Well,  since  I'm not supa dupa coder, I'll leave the hardcore stuff to the
real coders.. later..  don't let me see any more cursors..

NOTE:
    sure.. this file is crap, but I stuffed up my issues numbers and ended up
    with a blank for 14.. so I threw this one in.. it *could* be help to
    someone.. 


+##+ --------------------------------------------------------------------- +##+
#### Damn, i wish i could get a wicked ascii artist to do me a decent lay- ####
#### out instead of this crappy framey thingy..                            ####
#### THE TRUTH IS OUT THERE                                                ####
####       x-files! yeah! yahoo! gee, don't you just love the feds ;)      ####
+##+ --------------------------------------------------------------------- +##+