Restored from previous forum. Originally posted by JohnDeHope3.
When I write a character to the bottom-right position of a console screen (position 79,24) it automatically scrolls down 1 line. How do I stop that from happening?
Console Scroll
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> When I write a character to the bottom-right position of a console
> screen (position 79,24) it automatically scrolls down 1 line.
Try locating the cursor to 0,0 immediately after writing to 79,24.
It may not work, but that's how I used to do it on the Commodore 64.
> When I write a character to the bottom-right position of a console
> screen (position 79,24) it automatically scrolls down 1 line.
Try locating the cursor to 0,0 immediately after writing to 79,24.
It may not work, but that's how I used to do it on the Commodore 64.
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> Alas it doesn't seem to work. Any more ideas?
No, there's no way to do it with the built-in PureBasic commands.
Maybe someone knows a way in assembler?
BTW, I made a mistake when I posted my method above: I didn't actually
use to relocate the cursor on the C64; I actually used to just POKE the
ASCII character code into the bottom-right corner's screen address.
> Alas it doesn't seem to work. Any more ideas?
No, there's no way to do it with the built-in PureBasic commands.
Maybe someone knows a way in assembler?
BTW, I made a mistake when I posted my method above: I didn't actually
use to relocate the cursor on the C64; I actually used to just POKE the
ASCII character code into the bottom-right corner's screen address.
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by pbdep.
When you write to the screen-memory in ASM with Char+Attr it should
work fine, but I dont know how PB handles the "print" command, or
what PB uses as Screen+Memory IO in protected mode.
Normaly it should work but if you use ANSI IO or Print/PrintN it
probably wont work.
Norman.
For DOS and Linux>Originally posted by JohnDeHope3
When I write a character to the bottom-right position of a console screen (position 79,24) it automatically scrolls down 1 line. How do I stop that from happening?
When you write to the screen-memory in ASM with Char+Attr it should
work fine, but I dont know how PB handles the "print" command, or
what PB uses as Screen+Memory IO in protected mode.
Normaly it should work but if you use ANSI IO or Print/PrintN it
probably wont work.
Norman.