TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Haavard Mork
from: Mikko Hyvarinen
date: 1997-02-15 11:02:48
subject: Cell

HM> I urgently need some information about these 'Cells' used in Vio. Where on
 HM> the inet can I find this kind of information? Or might anybody post it
 HM> here?

A cell is a pair of character and attribute values. Although the Vio
subsystem supports 4-byte cells, I don't know of a display card that
actually has them instead of the standard 2-byte cells that have been
around since the ages of the CGA display card. So, here's a description of
the 2-byte format.

The first byte is the character value, 0-255. Nothing fancy about it, just
dig up an ASCII table if you want to fool around with extended characters.

The second byte is the attribute. It's a bit field:

Bits    Meaning
0-3     Foreground color
4-6     Background color
7       Blink

Color values:
=============
0 - black
1 - blue
2 - green
3 - cyan
4 - red
5 - magenta
6 - brown
7 - white
8 - dark gray
9 - light blue
10 - light green
11 - light cyan
12 - light red
13 - light magenta
14 - yellow
15 - bright white

Remember: only color values 0-7 are usable as background colors.

 HM> If noone knows, it would be great to know what light cyan on blue
 HM> corresponds to.. :)

Attribute value 0x1B.

---
* Origin: Roaming the land while you sleep... (2:229/229.5)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 229/0 22/10 222/0 210/27 24/888 396/1 270/101 712/624 711/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™.