🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13110

Re: Changing Text color

#13110
From: Mike King
Date: Mon, 27 Oct 2003 17:39
8 lines
1077 bytes
> #define color(f, b) ((((f)&0xf)|((b)<<4))&0xff)
>
> void _fastcall set_colors(BYTE f,BYTE b)
> { SetConsoleTextAttribute( stdout, color(f, b) );
> }
>

Thank you very much!!!
Technical Details
Message-ID: <3f9d5834@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f9d3f26@newsgroups.borland.com> <0miqpv4k0fcd28054bd8ehcvp2rohub7fu@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c8cb73d0b2454dea
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-27 09:40:47 PST
From: "Mike King" <emailMK@excite.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f9d3f26@newsgroups.borland.com> <0miqpv4k0fcd28054bd8ehcvp2rohub7fu@4ax.com>
Subject: Re: Changing Text color
Date: Mon, 27 Oct 2003 12:39:00 -0500
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 64.45.143.248
Message-ID: <3f9d5834@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067276340 64.45.143.248 (27 Oct 2003 09:39:00 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail