Remove the cursor 
Author Message
 Remove the cursor

Hello,

Is there an script for Pascal so that I can make the blinking cursor
dissapear?

PLMK



Wed, 18 Jun 1902 08:00:00 GMT  
 Remove the cursor

Quote:
>Hello,

>Is there an script for Pascal so that I can make the blinking cursor
>dissapear?

>PLMK

just use dos-call 16d:

to show the cursor:  if graphic_memory starts at $b800 then use
                                ...
                                reg : registers;
                                ...
                                reg.ah := 1;
                                reg.ch := 6;
                                reg.hl := 7;
                                ....
                            else use:

                                reg.ah := 1;
                                reg.ch := 12;
                                reg.cl := 13;

            finaly call: intr(16, reg);

to hide the cursor:
                                reg.ah :=1;
                                reg.ch := 32;
                                reg.cl  := 7;
            finaly call: intr(16, reg);

hope it works

trs



Wed, 18 Jun 1902 08:00:00 GMT  
 Remove the cursor
...

Quote:

>just use dos-call 16d:

>to show the cursor:  if graphic_memory starts at $b800 then use
>                                ...
>                                reg : registers;
>                                ...
>                                reg.ah := 1;
>                                reg.ch := 6;
>                                reg.hl := 7;

Please no such assumptions. Te following routines make no assumptions:

Procedure CursorOff; Assembler;
  Asm
  Mov ah,3
  mov bx,0
  int 10h
  or ch,20h
  mov ah,1
  mov bx,0
  int 10h
  end;

Procedure CursorOn;  Assembler;
  Asm
  Mov ah,3
  mov bx,0
  int 10h
  and ch,255-20h
  mov ah,1
  mov bx,0
  int 10h
  end;

Osmo



Wed, 18 Jun 1902 08:00:00 GMT  
 Remove the cursor

Quote:
> Hello,

> Is there an script for Pascal so that I can make the blinking cursor
> dissapear?

"hidecursor" command


Wed, 18 Jun 1902 08:00:00 GMT  
 Remove the cursor
This doesn't work with me. Is it a unit or what?

PLMK
ViLNiuS



Wed, 18 Jun 1902 08:00:00 GMT  
 Remove the cursor

Quote:

> This doesn't work with me. Is it a unit or what?

Please quote the message you reply to.

It doesn't work because it is meant to be used in a Turbo Vision based
program. It's defined in the unit "views".



Wed, 18 Jun 1902 08:00:00 GMT  
 Remove the cursor


Quote:



>>Please no such assumptions. Te following routines make no assumptions:

>>Procedure CursorOff; Assembler;
>>  Asm
>>  Mov ah,3

>There is the assumption that TP 6 or higher is being used; and only TP1,
>TP3.02, TP5.5 are free & legal (unless one accepts French Help &c.).

Actually there is an assumption that people here are programmers.
Converting that to use Intr() is trivial.

Osmo



Wed, 18 Jun 1902 08:00:00 GMT  
 Remove the cursor
Okay,

well I will do that in the future but I still don't know how to remove the
cursor in TP7..



Quote:

> > This doesn't work with me. Is it a unit or what?

> Please quote the message you reply to.

> It doesn't work because it is meant to be used in a Turbo Vision based
> program. It's defined in the unit "views".



Wed, 18 Jun 1902 08:00:00 GMT  
 Remove the cursor

Quote:

> well I will do that in the future but I still don't know how to remove the
> cursor in TP7..

Osmo Ronkanen has posted routines to deactivate and reactivate the cursor in

Well, it's great that you are quoting now, but please reply below the quotes.



Wed, 18 Jun 1902 08:00:00 GMT  
 Remove the cursor

Quote:



> > well I will do that in the future but I still don't know how to remove
the
> > cursor in TP7..

> Osmo Ronkanen has posted routines to deactivate and reactivate the cursor
in


Could you please give me that info? I somehow can't get access to that link.

Quote:




> Well, it's great that you are quoting now, but please reply below the
quotes.



Wed, 18 Jun 1902 08:00:00 GMT  
 Remove the cursor

Quote:

> Could you please give me that info? I somehow can't get access to that link.

Sure:

http://www.deja.com/=dnc/msgid.xp?ST=++&AH=1&MID=%3C8dfknr%24gvs%241%...

Quote:




> > Well, it's great that you are quoting now, but please reply below the
> quotes.

Okay, you are constantly improving. Now please quote only what is necessary. :-)


Wed, 18 Jun 1902 08:00:00 GMT  
 Remove the cursor


Quote:

>well I will do that in the future but I still don't know how to remove the
>cursor in TP7..

This question is well answered in TSFAQP #21.

It's really a waste of time and space to discuss it again here without
reading and referring to that article.  See Sig Line 3.  My pascal.htm
also refers.

--

 <URL: http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
 <URL: ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip> Timo Salmi's Turbo Pascal FAQ;
 <URL: http://www.merlyn.demon.co.uk/clpb-faq.txt> Pedt Scragg: c.l.p.b. mFAQ.



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 13 post ] 

 Relevant Pages 

1. Removing the cursor in text mode

2. Fast PutCharacter Procedure &/or remove cursor procedure

3. fast putchar procedure and remove cursor procedure needed for lord II type game

4. Removing&recreating indexes (MS-SQL, Delphi 5, ADO)

5. how to remove the security check for MS access when call the table

6. removing networked objects from heap

7. Remove the frame from DBRadioGroup

8. How do I delete/remove a field from a database

9. Remove (hide) Non-Visual VCL on Forms at Design-Time

10. I want to remove vertical scrollbar from DBGrid

11. Removing an entry in an array

12. How to remove an ActiveX from the palette

 

 
Powered by phpBB® Forum Software