Console Scroll

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

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?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

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.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by JohnDeHope3.

Alas it doesn't seem to work. Any more ideas?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

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.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by JohnDeHope3.

You know, I thought of that... Can you tell me what the memory range is for the 80x25 display? Or perhaps tell me a place to find such information?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Can you tell me what the memory range is for the 80x25 display?
> Or perhaps tell me a place to find such information?

I really don't know how to interact with the console in such a way, sorry.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pbdep.
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?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pbdep.
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?
For DOS and Linux>
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.
Post Reply