ZealOS/docs/Doc/CmdLineOverview.html
TomAwezome 5002ed5880 Fix HTML index file generation.
Fix HTML generation tab width.
2021-07-04 18:11:43 -04:00

75 lines
5.5 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.05">
<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:courier;font-size:10pt">
<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://tomawezome.github.io/ZealOS/Doc/CosmiC.html#l1"><span class=cF4>CosmiC</span></a><span class=cF0> compiler line-by-line as you type. A stmt 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>&lt;CTRL-SHIFT-F1&gt;</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://tomawezome.github.io/ZealOS/Kernel/BlkDev/DiskDirB.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>&gt;</span><span class=cF2>Dir(&quot;*.DD&quot;);</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>&gt;</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>#incl
<a name="l17"></a>ude </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>&lt;ENTER&gt;</span><span class=cF0> on a directory listing or press </span><span class=cF2>&lt;F5&gt;</span><span class=cF0>
<a name="l18"></a>while editing.
<a name="l19"></a>
<a name="l20"></a>&gt;</span><span class=cF2>Ed(&quot;NewFile.CC&quot;);</span><span class=cF0> Invokes the editor. See </span><a href="https://tomawezome.github.io/ZealOS/System/DolDoc/DocLink.html#l29"><span class=cF4>Doc Link Type</span></a><span class=cF0>.
<a name="l21"></a>
<a name="l22"></a>Most filenames end in because they are stored compressed.
<a name="l23"></a>
<a name="l24"></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="l25"></a>
<a name="l26"></a>&gt;</span><span class=cF2>Drive('B');</span><span class=cF0> B drive
<a name="l27"></a>
<a name="l28"></a>The drive can be specified in a </span><a href="https://tomawezome.github.io/ZealOS/Kernel/BlkDev/DiskDirB.html#l9"><span class=cF4>Cd</span></a><span class=cF0>() command as in:
<a name="l29"></a>
<a name="l30"></a>&gt;</span><span class=cF2>Cd(&quot;B:/Tmp&quot;);</span><span class=cF0> B drive
<a name="l31"></a>&gt;</span><span class=cF2>Cd(&quot;::/Demo&quot;);</span><span class=cF0> Boot drive
<a name="l32"></a>
<a name="l33"></a>The home directory is specified with a </span><span class=cF2>'~'</span><span class=cF0>.
<a name="l34"></a>
<a name="l35"></a>&gt;</span><span class=cF2>Cd(&quot;~/Psalmody&quot;);</span><span class=cF0> See </span><a href="https://tomawezome.github.io/ZealOS/Doc/GuideLines.html#l30"><span class=cF4>::/Home dir</span></a><span class=cF0>.
<a name="l36"></a>
<a name="l37"></a>If a file is not found, </span><span class=cF2>.Z</span><span class=cF0> is added or removed and a search is done, again. If a file is still not found, all parent
<a name="l38"></a>directories are searched.
<a name="l39"></a>
<a name="l40"></a>You can place macros in your </span><a href="https://tomawezome.github.io/ZealOS/Home/PersonalMenu.html#l1"><span class=cF4>PersonalMenu</span></a><span class=cF0> for </span><a href="https://tomawezome.github.io/ZealOS/Kernel/BlkDev/DiskDirB.html#l9"><span class=cF4>Cd</span></a><span class=cF0>() commands. </span><span class=cF2>&lt;CTRL-m&gt;</span><span class=cF0> to access your menu.
<a name="l41"></a>
<a name="l42"></a>&gt;</span><span class=cF2>Find(&quot;needle&quot;,&quot;/Demo/*.CC;*.DD;&quot;);</span><span class=cF0> See </span><a href="https://tomawezome.github.io/ZealOS/Doc/FileUtils.html#l1"><span class=cF4>File Utils</span></a><span class=cF0>.
<a name="l43"></a></span><span class=cF4>
<a name="l44"></a><u>Cmd Line Routines</span><span class=cF0>
<a name="l45"></a></span><span class=cF9>
<a name="l46"></a>Take Tour</u></span><span class=cF0>
</span></pre></body>
</html>