Text UI: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Frank (talk | contribs)
No edit summary
Line 18:
 
== Colours ==
 
Each character has a forecolour and a backcolour. Its easy to write the Color Nibles (4Bit) in a Hex Value. <br>
For Example: 0x01 sets the forecolour to Blue, 0x10 sets the background to Blue and 0x11 sets both to blue. <br>
<br>
Each character has a forecolour and a backcolour. The default display colours set by the [[BIOS]] upon booting are are7 7(White) for the foreground, and 0 (black) for the background.<br>
<br>
The Colorbyte layout:
<pre>
Bit 76543210
||||||||
|||||^^^-forecolour
||||^----forecolour bright bit
|^^^-----backcolour
^--------backcolour bright bit OR enables blinking Text
</pre>
 
In text mode 0, the following colour pallete is avaliable for use:
 
Line 23 ⟶ 39:
! Number
! Colour
! Name
! Number
! bright Colour
! Name
|-
Line 28 ⟶ 47:
| style="background: #000000" |
| Black
| 0+8=8
| style="background: #808080" |
| Dark Gray
|-
| 1
| style="background: #0000c0" |
| Blue
| 1+8=9
| style="background: #0000ff" |
| Light Blue
|-
| 2
| style="background: #00c000" |
| Green
| 2+8=A
| style="background: #00ff00" |
| Light Green
|-
| 3
| style="background: #00c0c0" |
| Cyan
| 3+8=B
| style="background: #00ffff" |
| Light Cyan
|-
| 4
| style="background: #c00000" |
| Red
| 4+8=C
| style="background: #ff0000" |
| Light Red
|-
| 5
| style="background: #c000c0" |
| Magenta
| 6+8=D
| style="background: #ff00ff" |
| Light Magenta
|-
| 6
| style="background: #c08000" |
| Brown
| 6*8=E
| style="background: #ffff00" |
| Yellow
|-
| 7
| style="background: #c0c0c0" |
| Light Gray
| 7+8=F
|-
| 8
| style="background: #808080" |
| Dark Gray
|-
| 9
| style="background: #0000ff" |
| Light Blue
|-
| 10
| style="background: #00ff00" |
| Light Green
|-
| 11
| style="background: #00ffff" |
| Light Cyan
|-
| 12
| style="background: #ff0000" |
| Light Red
|-
| 13
| style="background: #ff00ff" |
| Light Magenta
|-
| 14
| style="background: #ffff00" |
| Yellow
|-
| 15
| style="background: #ffffff" |
| White
|-
|}
 
Each character has a forecolour and a backcolour. The default display colours set by the [[BIOS]] upon booting are are 7 for the foreground, and 0 for the background.
 
== Example Console Class ==