Page 1 of 1 1
Topic Options
#77753 - 2001-05-08 06:02 AM Bug in a box
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
This command:

box(0, 0, 24, 79, single)

should make a box that fits around a 80x25 dos window. It does for NT, but in Win95 it causes the screen to jump up. If you change the 79 to 78 or the 24 to 23 it doesn't, so I suspect it has something to do with the bottom right character on the screen.

I noticed this bug in KiX3.63 but forgot, it is still here in k2k, can it be fixed or is this a Win9x unavoidable issue?

cj

Top
#77754 - 2001-05-09 12:04 AM Re: Bug in a box
Anonymous
Unregistered


Don't know why NT doesn't do the same thing but in the case if Win9x, and everything which went before it, the reason is that when a character is printed the cursor moves to the next character position, which inthis particular example means the first character of the next line, which of course forces a scroll. Come to think of it, the same problem existed on everything else I used prior to using PCs. Perhaps NT is different because it's not built on DOS but merely emulates it.
Top
#77755 - 2001-05-08 04:18 PM Re: Bug in a box
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
I have seen this mentioned before, as an error in the Win9x API. When you write to last collumn in the last line, the Win9x API automatically inserts a linefeed.

The following script will also put in an unwanted linefeed and scroll the screen:

"Line 1"
?"Line 2"
AT(24,79) "x"
Get $x


Erik

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 509 anonymous users online.
Newest Members
min_seow, Audio, Hoschi, Comet, rrosell
17881 Registered Users

Generated in 0.049 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.