VOGONS


White screen

Topic actions

First post, by joeyc100

User metadata
Rank Newbie
Rank
Newbie

Can dosbox be started with a white screen?

Reply 1 of 3, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

One way would be to use ANSI escape sequences.
http://www.pcxt-micro.com/ansi.html

I'm not quite sure what the best way to actually implement these in DOSBox is, but I've attached a .bat file that uses the example from that website which I made using a hex editor. Rename the file to test.bat and run it in DOSBox, and you'll have white-on-black text.

I'm not sure how to make the full screen go white, though. Maybe some ASM code to change the video mode?

Reply 2 of 3, by VileR

User metadata
Rank l33t
Rank
l33t

You can run the attached TSR from [autoexec]. The parameters for black text on white would be

CHGCOLOR 0:63 7:0

[ WEB ] - [ BLOG ] - [ TUBE ] - [ CODE ]

Reply 3 of 3, by joeyc100

User metadata
Rank Newbie
Rank
Newbie

Apparently just working in MsDos using an int10h function10h will allow me to set the bkg palette color to whatever, but only in regular video modes(640x480) and not in int10h function4f Vesa modes (1280x1024). And so the problem is not with DosBox running in Windows XP but with my program itself. I need the higher resolution with background colors.
Thanks for your replies.