Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-05

Bug in windows crt unit

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

pascalive

I have used the following trick for writing a char at bottom right corner and prevent the screen to scroll:

   Inc(WindMax);
   GotoXy(lo(WindMax)-(lo(WindMin)),hi(WindMax)+1 - hi(windMin));
   Write('X');
   Dec(WindMax);
   readkey;

It works under TP and FPC 1.04, but under 1.06 the screen scrolls. I already installed the 1.07 files and the bug remains

__________________________________________________________________________ Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados. DomíniosBOL - http://dominios.bol.com.br

Reply by email

Jonas Maebe
to pascalive
pascalive wrote
I have used the following trick for writing a char at bottom right corner and prevent the screen to scroll:

As you state yourself, that is a trick. It's nowhere documented that it should work, so it's not a bug if it doesn't.

Show quoted text 8 lines
Inc(WindMax); GotoXy(lo(WindMax)-(lo(WindMin)),hi(WindMax)+1 - hi(windMin)); Write('X'); Dec(WindMax); readkey; It works under TP and FPC 1.04, but under 1.06 the screen scrolls. I already installed the 1.07 files and the bug remains

The reason it doesn't work anymore is that the windmin/windmax structure had to be changed to allow larger screen sizes.

Jonas

Reply by email