Board index » delphi » Blinking cursor
BERN
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
BERN
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Blinking cursor
Hi. I'm going crazy around a little problem that I can't solve. Is there
a way (a graphic mode, a text attribute or something else) to make disappear the DOS blinking cursor in a TurboPascal 7 program? Is very frustrating to see it when you compose a splendid ASCII image. Thanx in advance, BERNA |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorQuoteIn article <384BBF87.608C5...@hotmail.com>, BERNA <ugi...@hotmail.com> wrote: Asm Mov ah,3 mov bx,0 int 10h or ch,20h mov ah,1 mov bx,0 int 10h end; Procedure CursorOn; Assembler; Or for more temporary removal of the cursor you could do: inc(windmax); This assuming the widow is 1,1,80,25. In the latter it will show again when it is moved to the visible area Osmo |
Frederic Bonro
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorQuoteBERNA wrote: ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip |
Thomas Nelvi
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorQuoteBERNA <ugi...@hotmail.com> wrote in message : Hi. I'm going crazy around a little problem that I can't solve. Is there : a way (a graphic mode, a text attribute or something else) to make : disappear the DOS blinking cursor in a TurboPascal 7 program? Is very : frustrating to see it when you compose a splendid ASCII image. : : Thanx in advance, BERNA I use the following: procedure HideCursor; assembler; procedure ShowCursor; assembler; These two procedures is kind of hardcoded versions of the following: procedure SetCursorSize(Line1, Line2 : Byte); assembler; I hope this will end some of your frustration. :) |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorIn article <82gqqo$sn...@news.ost.eltele.no>, QuoteThomas Nelvik <thomas.nel...@sensewave.com> wrote: Do not assume anything about the cursor shape. Osmo |
Dr John Stockto
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorJRS: In article <82gkv8$fv...@kruuna.Helsinki.FI> of Mon, 6 Dec 1999 17:32:56 in news:comp.lang.pascal.borland, Osmo Ronkanen Quote<ronka...@cc.helsinki.fi> wrote: No doubt the esteemed, late Gerard Hoffnung would have had advice to -- |
nob..
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorI always use the following unit by putting it in my uses statement. Just type BlankCursor(TRUE) to blank the cursor and BlankCursor(FALSE) to unblank it. Also, at the beginning of the program you should call GetInitialCursor to save the cursor values and at the end of the program call RestoreInitialCursor to restore it to the value it had before the program ran. You can also use BlockCursor(TRUE) and BlockCursor(FALSE) to mimic the change in cursor shape when someone hits the insert key. Hope this does it for you. UNIT Cursor; {Blanks or unblanks the cursor and also makes the cursor INTERFACE USES CRT, DOS; VAR PROCEDURE BlankCursor(Blank : BOOLEAN); IMPLEMENTATION PROCEDURE GetInitialCursor; BEGIN PROCEDURE RestoreInitialCursor; BEGIN PROCEDURE BlankCursor; BEGIN FALSE : WITH Regs DO PROCEDURE BlockCursor; BEGIN FALSE : WITH Regs DO END. On Mon, 06 Dec 1999 16:14:51 +0100, Frederic Bonroy Quote<fbon...@mail.dotcom.fr> wrote: |
Thomas Nelvi
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorQuoteOsmo Ronkanen <ronka...@cc.helsinki.fi> wrote in message : In article <82gqqo$sn...@news.ost.eltele.no>, : Thomas Nelvik <thomas.nel...@sensewave.com> wrote: : > Quote: >BERNA <ugi...@hotmail.com> wrote in message : >: Hi. I'm going crazy around a little problem that I can't solve. Is there : >: a way (a graphic mode, a text attribute or something else) to make : >: disappear the DOS blinking cursor in a TurboPascal 7 program? Is very : >: frustrating to see it when you compose a splendid ASCII image. : >: : >: Thanx in advance, BERNA : > : >I use the following: : > : >procedure HideCursor; assembler; : >asm : > MOV CX,$2000 : > MOV AH,1 : > INT $10 : >end; : > : >procedure ShowCursor; assembler; : >asm : > MOV CX,$0607 { draw cursor lines 6 } : > MOV AH,1 : > INT $10 : >end; : : Have you tried that on mono adapter? Nope! How does it look? : Do not assume anything about the cursor shape. I DO agree! -ThomasN |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorIn article <82hj1l$dn...@news.ost.eltele.no>, QuoteThomas Nelvik <thomas.nel...@sensewave.com> wrote: Osmo |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorIn article <edXt8gM9rDT4E...@merlyn.demon.co.uk>, Dr John Stockton <j...@merlyn.demon.co.uk> wrote: Quote>JRS: In article <82gkv8$fv...@kruuna.Helsinki.FI> of Mon, 6 Dec 1999 to put the cursor outside the screen, not just outside the current window. One could pick the windmax in a variable, set it to 81 and then restore it. Osmo |
Thomas Nelvi
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursor: >: Have you tried that on mono adapter? : > : >Nope! How does it look? : : It blinks rights in the middle of the cell. Wow, that sounds fancy, but not much elegant. -ThomasN |
BERN
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorThanx you all guys, you are great! BERNA |
Dr John Stockto
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorJRS: In article <82ho0c$9c...@kruuna.Helsinki.FI> of Tue, 7 Dec 1999 03:30:52 in news:comp.lang.pascal.borland, Osmo Ronkanen Quote<ronka...@cc.helsinki.fi> wrote: The implication of the thread previously was that the current window was -- |
Marcel Vander Mierd
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorThanks John, I got in via http://www.uwasa.fi/~ts/garbo.html It seems there is a limited number of visitors allowed at * Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Blinking cursorIn article <GGebqOOZYYT4E...@merlyn.demon.co.uk>, Dr John Stockton <j...@merlyn.demon.co.uk> wrote: Quote>JRS: In article <82ho0c$9c...@kruuna.Helsinki.FI> of Tue, 7 Dec 1999 The code was: inc(windmax); Now if you replace the middle line with gotoxy(lo(windmax)+1,wherey) the code will still work when the window is up to 80 columns. However, Quote>The implication of the thread previously was that the current window was Osmo |