crt problem using gotoxy, write and SCREENWIDTH
Original Reporter info from Mantis: amadeusz.slawinski@gmail.com
-
Reporter name: Amadeusz S?awi?ski
Original Reporter info from Mantis: amadeusz.slawinski@gmail.com
- Reporter name: Amadeusz S?awi?ski
Description:
Whe using this code I expect to get a yellow line on themost right of the terminal window, but it 'draws' it frome the lefttop to downright:
for i := 1 to SCREENHEIGHT do
begin
textbackground(YELLOW);
gotoxy(SCREENWIDTH, i);
write(' ');
end;
When using this things seems to work correctly but the line is 'doublespaced'
for i := 1 to SCREENHEIGHT do
begin
textbackground(YELLOW);
gotoxy(SCREENWIDTH-1, i);
write(' '); {here write two spaces}
end;
Additional information:
Using Mac OS X v 10.4.8 Intel version
compiling using version from this package: fpc-2.1.1-20061015-i386.pkg
terminal version 1.5
Mantis conversion info:
- Mantis ID: 8076
- Fixed in version: 2.2.4
- Fixed in revision: 11690 (#aace2952)
- Monitored by: » Azarien (Wiktor Sywula)
- Target version: 2.2.4
- FPCTarget: 2.2.2