| Zeile 22: | Zeile 22: | ||
{| {{Prettytable}} | {| {{Prettytable}} | ||
|- | |- | ||
| − | !Wert !! Farbe !! Wert !! Farbe | + | !Wert !! Farbe !! !! Wert !! Farbe !! |
|- | |- | ||
| − | |0x0 || Schwarz || 0x8 || Dunkelgrau | + | |0x0 || Schwarz || style="background-color:#000000; width: 16px;" | || 0x8 || Dunkelgrau || style="background-color:#575757; width: 16px;" | |
|- | |- | ||
| − | |0x1 || Blau || 0x9 || Hellblau | + | |0x1 || Blau || style="background-color:#0000a8; width: 16px;" | || 0x9 || Hellblau || style="background-color:#5757ff; width: 16px;" | |
|- | |- | ||
| − | |0x2 || Grün || 0xA || Hellgrün | + | |0x2 || Grün || style="background-color:#00a800; width: 16px;" | || 0xA || Hellgrün || style="background-color:#57ff57; width: 16px;" | |
|- | |- | ||
| − | |0x3 || Cyan || 0xB || Hellcyan | + | |0x3 || Cyan || style="background-color:#00a8a8; width: 16px;" | || 0xB || Hellcyan || style="background-color:#57ffff; width: 16px;" | |
|- | |- | ||
| − | |0x4 || Rot || 0xC || Hellrot | + | |0x4 || Rot || style="background-color:#a80000; width: 16px;" | || 0xC || Hellrot || style="background-color:#ff5757; width: 16px;" | |
|- | |- | ||
| − | |0x5 || Magenta || 0xD || Hellmagenta | + | |0x5 || Magenta || style="background-color:#a800a8; width: 16px;" | || 0xD || Hellmagenta || style="background-color:#ff57ff; width: 16px;" | |
|- | |- | ||
| − | |0x6 || Braun || 0xE || Gelb | + | |0x6 || Braun || style="background-color:#a85700; width: 16px;" | || 0xE || Gelb || style="background-color:#ffff57; width: 16px;" | |
|- | |- | ||
| − | |0x7 || Hellgrau || 0xF || Weiß | + | |0x7 || Hellgrau || style="background-color:#a8a8a8; width: 16px;" | || 0xF || Weiß || style="background-color:#ffffff; width: 16px;" | |
|} | |} | ||
| − | Häufig benutzt wird 0x07, Hellgrau auf Schwarz. | + | Häufig benutzt wird 0x07, <b style="color:#a8a8a8; background-color:#000000;">Hellgrau auf Schwarz.</b> |
===== Blinken ===== | ===== Blinken ===== | ||
| Zeile 47: | Zeile 47: | ||
Wie man die Bedeutung dieses Bits manuell bestimmen kann, steht im Artikel [[Color_Graphics_Adapter#16_Hintergrundfarben|Color Graphics Adapter]]. | Wie man die Bedeutung dieses Bits manuell bestimmen kann, steht im Artikel [[Color_Graphics_Adapter#16_Hintergrundfarben|Color Graphics Adapter]]. | ||
| + | |||
==== Beispiel ==== | ==== Beispiel ==== | ||
Hier ein kleines Beispiel einer Funktion, die ein Zeichen (chr), in der Farbe color auf den Bildschirm, an die Position x,y schreiben soll. Hierbei werden Steuerzeichen nicht beachtet bzw. als normales Zeichen auch ausgegeben (siehe [[Codepage 437]]). | Hier ein kleines Beispiel einer Funktion, die ein Zeichen (chr), in der Farbe color auf den Bildschirm, an die Position x,y schreiben soll. Hierbei werden Steuerzeichen nicht beachtet bzw. als normales Zeichen auch ausgegeben (siehe [[Codepage 437]]). | ||