mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-29 08:46: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.
72 lines
5.4 KiB
HTML
Executable file
72 lines
5.4 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=cF5> Command Line Overview</span><span class=cF0>
|
|
<a name="l2"></a>
|
|
<a name="l3"></a>The cmd line feeds into the </span><a href="https://zeal-operating-system.github.io/ZealOS/Doc/CosmiC.DD.html#l1"><span class=cF4>CosmiC</span></a><span class=cF0> compiler line-by-line as you type. A statement outside a function executes immediately.
|
|
<a name="l4"></a>Remember to add a semicolon.
|
|
<a name="l5"></a>
|
|
<a name="l6"></a>Look-up the function headers with </span><span class=cF2>AutoComplete</span><span class=cF0> by hitting </span><span class=cF2><CTRL-SHIFT-F1></span><span class=cF0> after typing the first few letters.
|
|
<a name="l7"></a></span><span class=cF4>
|
|
<a name="l8"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/BlkDev/DiskDirB.CC.html#l120"><span class=cF4>Click Here</span></a><span class=cF0> to see the directory cmd header. It accepts default args from C++.
|
|
<a name="l9"></a>
|
|
<a name="l10"></a>></span><span class=cF2>Dir("*.DD");</span><span class=cF0>
|
|
<a name="l11"></a>
|
|
<a name="l12"></a>If you don't have args, you don't need parenthesis.
|
|
<a name="l13"></a>
|
|
<a name="l14"></a>></span><span class=cF2>Dir;</span><span class=cF0>
|
|
<a name="l15"></a>
|
|
<a name="l16"></a>Directories are referenced with </span><span class=cF2>/</span><span class=cF0> not </span><span class=cF2>\</span><span class=cF0>. There is a current directory, but not a path. To run a program, you typically </span><span class=cF2>#in
|
|
<a name="l17"></a>clude </span><span class=cF0>it. There are several shortcuts for </span><span class=cF2>#include</span><span class=cF0>ing files. Right-click or hit </span><span class=cF2><ENTER></span><span class=cF0> on a directory listing or press </span><span class=cF2><F5></span><span class=cF0>
|
|
<a name="l18"></a>while editing.
|
|
<a name="l19"></a>
|
|
<a name="l20"></a>></span><span class=cF2>Ed("NewFile.CC");</span><span class=cF0> Invokes the editor. See </span><a href="https://zeal-operating-system.github.io/ZealOS/System/DolDoc/DocLink.CC.html#l29"><span class=cF4>Doc Link Type</span></a><span class=cF0>.
|
|
<a name="l21"></a>
|
|
<a name="l22"></a>Drives are specified with a letter. The boot drive is specified with a '</span><span class=cF2>:</span><span class=cF0>'. The home dir drive is specified with a </span><span class=cF2>'~'</span><span class=cF0>.
|
|
<a name="l23"></a>
|
|
<a name="l24"></a>></span><span class=cF2>Drive('B');</span><span class=cF0> B drive
|
|
<a name="l25"></a>
|
|
<a name="l26"></a>The drive can be specified in a </span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/BlkDev/DiskDirB.CC.html#l9"><span class=cF4>Cd</span></a><span class=cF0>() command as in:
|
|
<a name="l27"></a>
|
|
<a name="l28"></a>></span><span class=cF2>Cd("B:/Tmp");</span><span class=cF0> B drive
|
|
<a name="l29"></a>></span><span class=cF2>Cd("::/Demo");</span><span class=cF0> Boot drive
|
|
<a name="l30"></a>
|
|
<a name="l31"></a>The home directory is specified with a </span><span class=cF2>'~'</span><span class=cF0>.
|
|
<a name="l32"></a>
|
|
<a name="l33"></a>></span><span class=cF2>Cd("~/Psalmody");</span><span class=cF0> See </span><a href="https://zeal-operating-system.github.io/ZealOS/Doc/GuideLines.DD.html#l29"><span class=cF4>::/Home dir</span></a><span class=cF0>.
|
|
<a name="l34"></a>
|
|
<a name="l35"></a>If a file is not found, all parent directories are searched.
|
|
<a name="l36"></a>
|
|
<a name="l37"></a>You can place macros in your </span><a href="https://zeal-operating-system.github.io/ZealOS/Home/PersonalMenu.DD.html#l1"><span class=cF4>PersonalMenu</span></a><span class=cF0> for </span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/BlkDev/DiskDirB.CC.html#l9"><span class=cF4>Cd</span></a><span class=cF0>() commands. </span><span class=cF2><CTRL-m></span><span class=cF0> to access your menu.
|
|
<a name="l38"></a>
|
|
<a name="l39"></a>></span><span class=cF2>Find("needle","/Demo/*.CC;*.DD;");</span><span class=cF0> See </span><a href="https://zeal-operating-system.github.io/ZealOS/Doc/FileUtils.DD.html#l1"><span class=cF4>File Utils</span></a><span class=cF0>.
|
|
<a name="l40"></a></span><span class=cF4>
|
|
<a name="l41"></a><u>Cmd Line Routines</span><span class=cF0>
|
|
<a name="l42"></a></span><span class=cF9>
|
|
<a name="l43"></a>Take Tour</u></span><span class=cF0>
|
|
</span></pre></body>
|
|
</html>
|