mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-29 00:36:32 +00:00
dbf8647d59
Added top & right borders to RawDr. Improved spacing in some debug and compiler reporting. Fixed RawPutChar and EdLite tab width. Fixed Ui missing '0x' prefix syntax highlighter bug. Added 32BitPaint demo.
58 lines
4.6 KiB
HTML
Executable file
58 lines
4.6 KiB
HTML
Executable file
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
|
<meta name="generator" content="ZealOS V0.08">
|
|
<style type="text/css">
|
|
body {background-color:#000000;}
|
|
.cF0{color:#ffffff;background-color:#000000;}
|
|
.cF1{color:#3465a4;background-color:#000000;}
|
|
.cF2{color:#4e9a06;background-color:#000000;}
|
|
.cF3{color:#06989a;background-color:#000000;}
|
|
.cF4{color:#a24444;background-color:#000000;}
|
|
.cF5{color:#75507b;background-color:#000000;}
|
|
.cF6{color:#ce982f;background-color:#000000;}
|
|
.cF7{color:#bcc0b9;background-color:#000000;}
|
|
.cF8{color:#555753;background-color:#000000;}
|
|
.cF9{color:#729fcf;background-color:#000000;}
|
|
.cFA{color:#82bc49;background-color:#000000;}
|
|
.cFB{color:#34e2e2;background-color:#000000;}
|
|
.cFC{color:#ac3535;background-color:#000000;}
|
|
.cFD{color:#ad7fa8;background-color:#000000;}
|
|
.cFE{color:#fce94f;background-color:#000000;}
|
|
.cFF{color:#000000;background-color:#000000;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre style="font-family:monospace;font-size:12pt">
|
|
<a name="l1"></a><span class=cF5> Char Overview</span><span class=cF0>
|
|
<a name="l2"></a>
|
|
<a name="l3"></a>A </span><span class=cF2>Char</span><span class=cF0>acter is a single byte holding an ASCII code for a letter, num or sym. The </span><span class=cF2>ZealOS</span><span class=cF0> term is a </span><span class=cF2>U8</span><span class=cF0>.
|
|
<a name="l4"></a>
|
|
<a name="l5"></a>Standard ASCII values range from 0 to 127. Values below 32 are ctrl key's. So, an ASCII #3 is a </span><span class=cF2><CTRL-c></span><span class=cF0>. ZealOS uses a
|
|
<a name="l6"></a>couple nonstandard values below 32. See </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.HH.html#l4095"><span class=cF4>Char Definitions</span></a><span class=cF0>.
|
|
<a name="l7"></a>
|
|
<a name="l8"></a>ASCII #5 is the cursor location in a saved file.
|
|
<a name="l9"></a>ASCII #28 is </span><span class=cF2><SHIFT-ESC></span><span class=cF0>.
|
|
<a name="l10"></a>
|
|
<a name="l11"></a>ZealOS ASCII is 8-bit instead of 7-bit, so it also uses the range from 128-255. Press </span><span class=cF2><CTRL-ALT-a></span><span class=cF0> to see shapes for 128-255.
|
|
<a name="l12"></a>Technically, </span><span class=cF2><CTRL-ALT-a></span><span class=cF0> are </span><span class=cF4><u>screen codes</u></span><span class=cF0>.
|
|
<a name="l13"></a>
|
|
<a name="l14"></a>A </span><span class=cF2>Key</span><span class=cF0> is typically specified with a scan code. ZealOS scan codes contain the key value in the lowest </span><span class=cF2>U8</span><span class=cF0>, and flags in the
|
|
<a name="l15"></a>upper 3 bytes. See </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.HH.html#l4149"><span class=cF4>Scan Code Flags</span></a><span class=cF0> and </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.HH.html#l4183"><span class=cF4>Scan Codes</span></a><span class=cF0>.
|
|
<a name="l16"></a>
|
|
<a name="l17"></a>ZealOS stores scan codes in 8 bytes.
|
|
<a name="l18"></a> </span><span class=cF2>Byte 0</span><span class=cF0> is the code. NumPad keys, SHIFT, ALT, CTRL and GUI keys combined.
|
|
<a name="l19"></a> </span><span class=cF2>Byte 1-3</span><span class=cF0> are </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.HH.html#l4132"><span class=cF4>flags</span></a><span class=cF0>
|
|
<a name="l20"></a>
|
|
<a name="l21"></a>The upper 4-bytes are copied from lower 4-bytes.
|
|
<a name="l22"></a> </span><span class=cF2>Byte 4</span><span class=cF0> is the code. Left, Right and NumPad keys distinct.
|
|
<a name="l23"></a> </span><span class=cF2>Byte 5-7</span><span class=cF0> are </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.HH.html#l4132"><span class=cF4>flags</span></a><span class=cF0>
|
|
<a name="l24"></a>
|
|
<a name="l25"></a>Run the program </span><a href="https://tomawezome.github.io/ZealOS/Demo/MessageLoop.CC.html#l1"><span class=cF4>::/Demo/MessageLoop.CC</span></a><span class=cF0> to examine scan code. Press </span><span class=cF2><CTRL-SHIFT-l></span><span class=cF0> and "Insert ASCII/ScanCode".
|
|
<a name="l26"></a>
|
|
<a name="l27"></a>See </span><a href="https://tomawezome.github.io/ZealOS/Doc/KeyAlloc.DD.html#l1"><span class=cF4>Key Allocations</span></a><span class=cF0> and </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.HH.html#l3632"><span class=cF4>CKbdStateGlobals</span></a><span class=cF0>.
|
|
<a name="l28"></a>
|
|
<a name="l29"></a>A </span><span class=cF2>String</span><span class=cF0> is a bunch of ASCII characters terminated with a zero.
|
|
</span></pre></body>
|
|
</html>
|