🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2862

Re: How does BIOS define character attributes?

#2862
From: Steve Resnick
Date: Wed, 31 Oct 1990 00:55
33 lines
1906 bytes
In article <6558@uceng.UC.EDU> dsims@uceng.UC.EDU (david l sims) writes:
>I want to use BIOS call 10H, function 09H (write attribute/character at
>current cursor position). Register BL is supposed to hold the
>attribute of the character that I want to write. However, I've searched
>my BIOS manual high and low, and I can't find anything describing
>this "character attribute."
>
>Does anyone know how this character attribute is defined?
>I'm using alpha mode only, but if
>there's any information on graphics attributes as well, I would
>appreciate having it.

The attributes are the colors for the text you want. Each character is 
associated with a color byte. The attributes are set as follows:

	BbbbIfff  : Where each character represents a bit from MSB to LSB.
		     B = blink bit. If this is set, foreground chars blink.
		     b = background attribute.
		     I = foreground intensity.
		     f = foreground attribute.
		     
	Colors are: 0=Black, 1=Blue, 2=Green, 3=Cyan, 4=Red, 5=Magenta
	6 = brn (or yellow if intensity is set), 7 = white.
	
	
Hope this helps.....
Steve
.
-- 
----------------------------------------------------------------------------
steve.resnick@f105.n143.z1.FIDONET.ORG - or - apple!camphq!105!steve.resnick
Flames, grammar errors, spelling errrors >/dev/nul
The Asylum OS/2 BBS - (408)263-8017 IFNA 1:143/105.0
Technical Details
Message-ID: <1990Oct31.005556.2150@Octopus.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!voder!pyramid!octopus!stever
References: <6558@uceng.UC.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!voder!pyramid!octopus!stever
From: stever@Octopus.COM (Steve Resnick )
Newsgroups: comp.os.msdos.programmer
Subject: Re: How does BIOS define character attributes?
Keywords: BIOS character attributes
Message-ID: <1990Oct31.005556.2150@Octopus.COM>
Date: 31 Oct 90 00:55:56 GMT
References: <6558@uceng.UC.EDU>
Reply-To: stever@octopus.UUCP (Steve Resnick )
Organization: Octopus Enterprises, Cupertino CA
Lines: 33