Determining screen mode

Started by Payton Byrd, April 20, 2010, 10:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Payton Byrd

How do you determine at runtime whether a program was started in 40 or 80 column screen mode?  I don't want to force the user to pick one or the other, just adapt to what they were using.  I'm writing a prototype in basic, but will be porting it to C.  I need to dynamically size some screen elements to fit on 40 columns, but I don't want to force the limited screen layout on 80 column users.

Payton
Payton Byrd
---------------------------------------------------
Flat 128 w/JD, uIEC/SD, uIEC-CF/IDE,
1541 Ultimate, 1571 w/JD, 1581 w/JD,
VDC-SVideo, Visio 19" HDTV

wte


Hydrophilic

In assembly,


BIT $D7
BMI 80column

I'm kupo for kupo nuts!

BigDumbDinosaur

Quote from: Payton Byrd on April 20, 2010, 10:32 AM
How do you determine at runtime whether a program was started in 40 or 80 column screen mode?  I don't want to force the user to pick one or the other, just adapt to what they were using.  I'm writing a prototype in basic, but will be porting it to C.  I need to dynamically size some screen elements to fit on 40 columns, but I don't want to force the limited screen layout on 80 column users.

Payton

You need to start perusing some of the literature available here.  A good start would be Mapping the Commodore 128.
x86?  We ain't got no x86.  We don't need no stinking x86!