mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-30 17:26:31 +00:00
6b3fd2fecb
Update documentation/comments to rename addr, fun, var, stmt, blk, desc, reg, seg, ptr, dup, clus, val, and bttn, to address, function, variable, statement, block, description, register, segment, pointer, duplicate, cluster, value, and button, respectively.
118 lines
12 KiB
HTML
Executable file
118 lines
12 KiB
HTML
Executable file
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
|
<meta name="generator" content="ZealOS V1.01">
|
|
<style type="text/css">
|
|
body {background-color:#fef1f0;}
|
|
.cF0{color:#000000;background-color:#fef1f0;}
|
|
.cF1{color:#0148a4;background-color:#fef1f0;}
|
|
.cF2{color:#3b7901;background-color:#fef1f0;}
|
|
.cF3{color:#057c7e;background-color:#fef1f0;}
|
|
.cF4{color:#bb2020;background-color:#fef1f0;}
|
|
.cF5{color:#9e42ae;background-color:#fef1f0;}
|
|
.cF6{color:#b57901;background-color:#fef1f0;}
|
|
.cF7{color:#b2b6af;background-color:#fef1f0;}
|
|
.cF8{color:#555753;background-color:#fef1f0;}
|
|
.cF9{color:#678fbb;background-color:#fef1f0;}
|
|
.cFA{color:#82bc49;background-color:#fef1f0;}
|
|
.cFB{color:#0097a2;background-color:#fef1f0;}
|
|
.cFC{color:#e26a6a;background-color:#fef1f0;}
|
|
.cFD{color:#c671bc;background-color:#fef1f0;}
|
|
.cFE{color:#c7ab00;background-color:#fef1f0;}
|
|
.cFF{color:#fef1f0;background-color:#fef1f0;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre style="font-family:monospace;font-size:12pt">
|
|
<a name="l1"></a><span class=cF2>//Puts the cursor at the bottom.</span><span class=cF0>
|
|
<a name="l2"></a></span><span class=cF5>Message</span><span class=cF0>(</span><span class=cF3>MESSAGE_KEY_DOWN</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0> | </span><span class=cF3>SCF_CTRL</span><span class=cF0>);
|
|
<a name="l3"></a></span><span class=cF6>"\n"</span><span class=cF0>;
|
|
<a name="l4"></a>
|
|
<a name="l5"></a>TourPut( </span><span class=cF6>"Now, we're going to demonstrate how to work "</span><span class=cF0>
|
|
<a name="l6"></a> </span><span class=cF6>"with programs. We'll change to the "</span><span class=cF0>
|
|
<a name="l7"></a> </span><span class=cF6>"$GREEN$/Demo/Games$FG$ directory.\n\n"</span><span class=cF0>
|
|
<a name="l8"></a> </span><span class=cF6>"Note that directories are specified with "</span><span class=cF0>
|
|
<a name="l9"></a> </span><span class=cF6>"a forward slash, not a backslash. "</span><span class=cF0>
|
|
<a name="l10"></a> </span><span class=cF6>"Drives can be specified in a $GREEN$Cd()$FG$ command "</span><span class=cF0>
|
|
<a name="l11"></a> </span><span class=cF6>"and the boot drive is specified with \"$GREEN$::$FG$\".\n\n"</span><span class=cF0>
|
|
<a name="l12"></a> </span><span class=cF6>"$GREEN$<ENTER>$FG$ to complete the command.\n"</span><span class=cF0>);
|
|
<a name="l13"></a>
|
|
<a name="l14"></a></span><span class=cF5>InPrint</span><span class=cF0>(</span><span class=cFE>25</span><span class=cF0>, </span><span class=cF6>"Cd(\"::/Demo/Games\");Dir;"</span><span class=cF0>);
|
|
<a name="l15"></a></span><span class=cF5>InGetStr</span><span class=cF0>(</span><span class=cF6>"\n"</span><span class=cF0>);
|
|
<a name="l16"></a>
|
|
<a name="l17"></a>
|
|
<a name="l18"></a>TourPut( </span><span class=cF6>"Now, we're going to edit a file. Normally, "</span><span class=cF0>
|
|
<a name="l19"></a> </span><span class=cF6>"you'll probably left-click on a directory "</span><span class=cF0>
|
|
<a name="l20"></a> </span><span class=cF6>"listing to edit a file, but we're going to "</span><span class=cF0>
|
|
<a name="l21"></a> </span><span class=cF6>"type it on the command line.\n\n"</span><span class=cF0>
|
|
<a name="l22"></a> </span><span class=cF6>"$GREEN$<ENTER>$FG$ to complete the command.\n"</span><span class=cF0>);
|
|
<a name="l23"></a>
|
|
<a name="l24"></a></span><span class=cF5>InPrint</span><span class=cF0>(</span><span class=cFE>25</span><span class=cF0>, </span><span class=cF6>"Ed(\"CastleFrankenstein.CC\");"</span><span class=cF0>);
|
|
<a name="l25"></a></span><span class=cF5>InGetStr</span><span class=cF0>(</span><span class=cF6>"\n"</span><span class=cF0>);
|
|
<a name="l26"></a></span><span class=cF5>Message</span><span class=cF0>(</span><span class=cF3>MESSAGE_KEY_DOWN_UP</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cF3>SC_CURSOR_UP</span><span class=cF0> | </span><span class=cF3>SCF_CTRL</span><span class=cF0>);
|
|
<a name="l27"></a>
|
|
<a name="l28"></a></span><span class=cF5>Sleep</span><span class=cF0>(</span><span class=cFE>1000</span><span class=cF0>);
|
|
<a name="l29"></a></span><span class=cF5>Message</span><span class=cF0>(</span><span class=cF3>MESSAGE_KEY_DOWN_UP</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0> | </span><span class=cF3>SCF_CTRL</span><span class=cF0>);
|
|
<a name="l30"></a>TourPut( </span><span class=cF6>"This is a first-person-shooter.\n\n"</span><span class=cF0>
|
|
<a name="l31"></a> </span><span class=cF6>"There is no \"$GREEN$main()$FG$\" function in ZealOS "</span><span class=cF0>
|
|
<a name="l32"></a> </span><span class=cF6>"programs. Any program statements outside "</span><span class=cF0>
|
|
<a name="l33"></a> </span><span class=cF6>"functions get executed when you $GREEN$#include$FG$ "</span><span class=cF0>
|
|
<a name="l34"></a> </span><span class=cF6>"them at the command line.\n\n"</span><span class=cF0>
|
|
<a name="l35"></a> </span><span class=cF6>"The \"$GREEN$CastleFrankenstein;$FG$\" statement at the "</span><span class=cF0>
|
|
<a name="l36"></a> </span><span class=cF6>"bottom will run the program when we "</span><span class=cF0>
|
|
<a name="l37"></a> </span><span class=cF6>"$GREEN$#include$FG$ it.\n"</span><span class=cF0>,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l38"></a>
|
|
<a name="l39"></a>TourPut(</span><span class=cF6>"Press $GREEN$<SHIFT-ESC>$FG$ to abort the editor.\n"</span><span class=cF0>);
|
|
<a name="l40"></a>
|
|
<a name="l41"></a></span><span class=cF5>InCharGet</span><span class=cF0>(</span><span class=cF3>CH_ESC</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l42"></a>
|
|
<a name="l43"></a>
|
|
<a name="l44"></a>TourPut(</span><span class=cF6>"Now, run the CastleFrankenstein.CC program. Press $GREEN$<ENTER>$FG$.\n"</span><span class=cF0>);
|
|
<a name="l45"></a>
|
|
<a name="l46"></a></span><span class=cF5>InPrint</span><span class=cF0>(</span><span class=cFE>25</span><span class=cF0>, </span><span class=cF6>"#include \"CastleFrankenstein\";"</span><span class=cF0>);
|
|
<a name="l47"></a></span><span class=cF5>InGetStr</span><span class=cF0>(</span><span class=cF6>"\n"</span><span class=cF0>);
|
|
<a name="l48"></a>TourPut( </span><span class=cF6>"Move around with cursor keys and press $GREEN$<SHIFT-ESC>$FG$ when you "</span><span class=cF0>
|
|
<a name="l49"></a> </span><span class=cF6>"are done.\n"</span><span class=cF0>);
|
|
<a name="l50"></a></span><span class=cF5>InUntilChar</span><span class=cF0>(</span><span class=cF3>CH_ESC</span><span class=cF0>, </span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l51"></a>
|
|
<a name="l52"></a>TourPut( </span><span class=cF6>"The program is still in memory and we can start it again by typing "</span><span class=cF0>
|
|
<a name="l53"></a> </span><span class=cF6>"\"$GREEN$CastleFrankenstein;$FG$\".\n\n"</span><span class=cF0>
|
|
<a name="l54"></a> </span><span class=cF6>"Press $GREEN$<ENTER>$FG$ at the command line to run it again.\n"</span><span class=cF0>);
|
|
<a name="l55"></a>
|
|
<a name="l56"></a></span><span class=cF5>InPrint</span><span class=cF0>(</span><span class=cFE>25</span><span class=cF0>, </span><span class=cF6>"CastleFrankenstein;"</span><span class=cF0>);
|
|
<a name="l57"></a></span><span class=cF5>InGetStr</span><span class=cF0>(</span><span class=cF6>"\n"</span><span class=cF0>);
|
|
<a name="l58"></a>TourPut( </span><span class=cF6>"Move around with cursor keys and press $GREEN$<SHIFT-ESC>$FG$ when you "</span><span class=cF0>
|
|
<a name="l59"></a> </span><span class=cF6>"are done.\n"</span><span class=cF0>);
|
|
<a name="l60"></a></span><span class=cF5>InUntilChar</span><span class=cF0>(</span><span class=cF3>CH_ESC</span><span class=cF0>, </span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l61"></a>
|
|
<a name="l62"></a>TourPut( </span><span class=cF6>"$GREEN$<CTRL-ALT-a>$FG$\tExtended ASCII.\n"</span><span class=cF0>
|
|
<a name="l63"></a> </span><span class=cF6>"$GREEN$<CTRL-ALT-c>$FG$\tBreak(interrupt) program.\n"</span><span class=cF0>
|
|
<a name="l64"></a> </span><span class=cF6>"$GREEN$<CTRL-ALT-m>$FG$\tMutes sound.\n"</span><span class=cF0>
|
|
<a name="l65"></a> </span><span class=cF6>"$GREEN$<CTRL-ALT-n>$FG$\tNext tasks.\n"</span><span class=cF0>
|
|
<a name="l66"></a> </span><span class=cF6>"$GREEN$<CTRL-ALT-t>$FG$\tTerminal window.\n"</span><span class=cF0>
|
|
<a name="l67"></a> </span><span class=cF6>"$GREEN$<CTRL-ALT-x>$FG$\tKill task (window).\n"</span><span class=cF0>, </span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l68"></a>
|
|
<a name="l69"></a></span><span class=cF5>InPrint</span><span class=cF0>(</span><span class=cFE>50</span><span class=cF0>, </span><span class=cF6>"Ed(\"CastleFrankenstein.CC\");\n"</span><span class=cF0>);
|
|
<a name="l70"></a>
|
|
<a name="l71"></a>TourPut(</span><span class=cF6>"Press $GREEN$<F5>$FG$ in the editor to run the file being edited.\n"</span><span class=cF0>);
|
|
<a name="l72"></a>
|
|
<a name="l73"></a></span><span class=cF5>InKeyGet</span><span class=cF0>(</span><span class=cF3>SC_F5</span><span class=cF0>);
|
|
<a name="l74"></a></span><span class=cF5>Sleep</span><span class=cF0>(</span><span class=cFE>1000</span><span class=cF0>);
|
|
<a name="l75"></a></span><span class=cF9>CTask</span><span class=cF0> *task = </span><span class=cFB>sys_focus_task</span><span class=cF0>;
|
|
<a name="l76"></a>
|
|
<a name="l77"></a>TourPut( </span><span class=cF6>"Press $GREEN$<SHIFT-ESC>$FG$ to abort the application. "</span><span class=cF0>
|
|
<a name="l78"></a> </span><span class=cF6>"Then, press $GREEN$<CTRL-ALT-x>$FG$ to kill the task.\n"</span><span class=cF0>);
|
|
<a name="l79"></a></span><span class=cF5>WinToTop</span><span class=cF0>(task);
|
|
<a name="l80"></a></span><span class=cF5>DeathWait</span><span class=cF0>(&task);
|
|
<a name="l81"></a>
|
|
<a name="l82"></a>TourPut(</span><span class=cF6>"Press $GREEN$<SHIFT-ESC>$FG$ to abort the editor.\n"</span><span class=cF0>);
|
|
<a name="l83"></a>
|
|
<a name="l84"></a></span><span class=cF5>InUntilChar</span><span class=cF0>(</span><span class=cF3>CH_ESC</span><span class=cF0>, </span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l85"></a>
|
|
<a name="l86"></a>TourPut( </span><span class=cF6>"Explore the $RED$</span><a href="https://zeal-operating-system.github.io/ZealOS/Doc/DemoIndex.DD.html#l1"><span class=cF6>DemoIndex</span></a><span class=cF6>$FG$. "</span><span class=cF0>
|
|
<a name="l87"></a> </span><span class=cF6>"You'll find it on your menu. It's arranged by difficulty. "</span><span class=cF0>
|
|
<a name="l88"></a> </span><span class=cF6>"Hit $GREEN$<SPACE>$FG$ on a demo index listing "</span><span class=cF0>
|
|
<a name="l89"></a> </span><span class=cF6>"and $GREEN$<F5>$FG$ to run from the editor.\n"</span><span class=cF0>, </span><span class=cF3>TRUE</span><span class=cF0>);
|
|
</span></pre></body>
|
|
</html>
|