ZealOS/docs/Doc/CmdLineOverview.DD.html

73 lines
5.4 KiB
HTML
Raw Normal View History

2021-07-03 05:07:57 +01:00
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
2021-10-18 06:49:09 +01:00
<meta name="generator" content="ZealOS V1.03">
2021-07-03 05:07:57 +01:00
<style type="text/css">
body {background-color:#1f1f1f;}
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
.cF1{color:#4f84a6;background-color:#1f1f1f;}
.cF2{color:#73a255;background-color:#1f1f1f;}
.cF3{color:#297582;background-color:#1f1f1f;}
.cF4{color:#b34f4b;background-color:#1f1f1f;}
.cF5{color:#8a52c3;background-color:#1f1f1f;}
.cF6{color:#b7822f;background-color:#1f1f1f;}
.cF7{color:#444444;background-color:#1f1f1f;}
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
.cF9{color:#94bfde;background-color:#1f1f1f;}
.cFA{color:#a1ce97;background-color:#1f1f1f;}
.cFB{color:#6db4be;background-color:#1f1f1f;}
.cFC{color:#e88e88;background-color:#1f1f1f;}
.cFD{color:#ca94e8;background-color:#1f1f1f;}
.cFE{color:#d4b475;background-color:#1f1f1f;}
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
2021-07-03 05:07:57 +01:00
</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>
2021-07-03 05:07:57 +01:00
<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.
2021-07-03 05:07:57 +01:00
<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://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++.
2021-07-03 05:07:57 +01:00
<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>#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>&lt;ENTER&gt;</span><span class=cF0> on a directory listing or press </span><span class=cF2>&lt;F5&gt;</span><span class=cF0>
2021-07-03 05:07:57 +01:00
<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://zeal-operating-system.github.io/ZealOS/System/DolDoc/DocLink.CC.html#l29"><span class=cF4>Doc Link Type</span></a><span class=cF0>.
2021-07-03 05:07:57 +01:00
<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>.
2021-07-03 05:07:57 +01:00
<a name="l23"></a>
<a name="l24"></a>&gt;</span><span class=cF2>Drive('B');</span><span class=cF0> B drive
2021-07-03 05:07:57 +01:00
<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:
2021-07-03 05:07:57 +01:00
<a name="l27"></a>
<a name="l28"></a>&gt;</span><span class=cF2>Cd(&quot;B:/Tmp&quot;);</span><span class=cF0> B drive
<a name="l29"></a>&gt;</span><span class=cF2>Cd(&quot;::/Demo&quot;);</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>.
2021-07-03 05:07:57 +01:00
<a name="l32"></a>
<a name="l33"></a>&gt;</span><span class=cF2>Cd(&quot;~/Psalmody&quot;);</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>.
2021-07-03 05:07:57 +01:00
<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>&lt;CTRL-m&gt;</span><span class=cF0> to access your menu.
<a name="l38"></a>
<a name="l39"></a>&gt;</span><span class=cF2>Find(&quot;needle&quot;,&quot;/Demo/*.CC;*.DD;&quot;);</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>
2021-07-03 05:07:57 +01:00
</span></pre></body>
</html>