πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #142

No cursor routine in Windows

#142
From: Alexander Ern
Date: Thu, 10 Jan 2002 14:39
45 lines
2094 bytes
I'm using the following routine in my programs to turn on and off the 
cursor in my programs:

unit Cursor;

interface

procedure CursorOff;
procedure CursorOn;

implementation

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;

end.

This routine works fine in a full-screen DOS-box under Windows. But when 
I change to a windowed DOS-box, the cursor is visible again.

How can I prevent my cursor to be visoble in both a windowed and 
full-screen DOS-box?

Alex
Technical Details
Message-ID: <20020110.14390493@mis.configured.host>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.online.be!newsfeeds.belnet.be!news.belnet.be!transit.news.xs4all.nl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 108ebd,caf3b5b6e7495a4a,start
X-Google-Attributes: gid108ebd,public
X-Google-Thread: 111659,caf3b5b6e7495a4a,start
X-Google-Attributes: gid111659,public
X-Google-Thread: 10cc59,caf3b5b6e7495a4a,start
X-Google-Attributes: gid10cc59,public
X-Google-ArrivalTime: 2002-01-10 06:34:50 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.online.be!newsfeeds.belnet.be!news.belnet.be!transit.news.xs4all.nl!not-for-mail
From: Alexander ErnΒ‚ <erne@xs4all.nl>
Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal,comp.lang.pascal
Subject: No cursor routine in Windows
Date: Thu, 10 Jan 2002 14:39:04 GMT
Organization: XS4ALL Internet BV
Lines: 45
Message-ID: <20020110.14390493@mis.configured.host>
Reply-To: Alexander ErnΒ‚ <erne@NOSPAM.xs4all.nl>
NNTP-Posting-Host: reizla.xs4all.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: news1.xs4all.nl 1010673288 16404 194.109.196.177 (10 Jan 2002 14:34:48 GMT)
X-Complaints-To: abuse@xs4all.nl
NNTP-Posting-Date: 10 Jan 2002 14:34:48 GMT
X-Priority: 3 (Normal)
X-Newsreader: Mozilla/3.0 (compatible; StarOffice/5.2;Win32)