| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Text Colors In Os/2 |
>@MSGID: 1:275/12.0 2e75e7ec
> I've just started programming in Watcom 9.5 and would like to know how
> to change screen colors (back and forground) in an Os/2 text window.
> Can anyone help me?
16 bit only, I'm afraid.
#define INCL_VIO
#include
#define BACKGROUND 0x01
#define FOREGROUND 0x0F
int main(void) {
BYTE bCell[2];
bCell[0] = 0x20;
bCell[1] = ( BACKGROUND << 4 ) + FOREGROUND;
VioScrollDn(0,0,0xFFFF,0xFFFF,0xFFFF,bCell,0);
}
___
* MR/2 2.05 NR * billyoc{at}netcom.com
--- QScan v1.12b / 01-0164
* Origin: PandA's Den BBS * Danvers, MA * 508-750-0250 * Node 1 (1:330/204)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 712/353 623 713/888 800/1 @PATH: 330/204 176 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.