CoolFace
Datasetpublic

hschumann2/TempleOS-Source-Code

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes838downloads
CmdLineOverview.txt52 linesDownload Raw Back to Doc
1 2                             Command Line Overview3 4The cmd line feeds into the HolyC compiler line-by-line as you type.  A stmt5outside a function executes immediately.  Remember to add a semicolon.6 7Look-up the function headers with AutoComplete by hitting <CTRL-SHIFT-F1> after8typing the first few letters.9 10Click Here to see the directory cmd header.  It accepts default args from C++.11 12>Dir("*.DD.Z");13 14If you don't have args, you don't need parenthesis.15 16>Dir;17 18Directories are referenced with / not \.  There is a current directory, but not19a path.  To run a program, you typically #include it.  There are several20shortcuts for #includeing files.  Right-click or hit <ENTER> on a directory21listing or press <F5> while editing.22 23>Ed("NewFile.HC.Z");    Invokes the editor. See Doc Link Type.24 25Most filenames end in .Z because they are stored compressed.26 27Drives are specified with a letter.  The boot drive is specified with a ':'.28The home dir drive is specified with a '~'.29 30>Drv('B');      B drive31 32The drive can be specified in a Cd() command as in:33 34>Cd("B:/Tmp");  B drive35>Cd("::/Demo"); Boot drive36 37The home directory is specified with a '~'.38 39>Cd("~/Psalmody");      See ::/Home dir.40 41If a file is not found, .Z is added or removed and a search is done, again.  If42a file is still not found, all parent directories are searched.43 44You can place macros in your PersonalMenu for Cd() commands.  <CTRL-m> to access45your menu.46 47>Find("needle","/Demo/*.HC.Z;*.DD.Z;"); See File Utils.48 49Cmd Line Routines50 51Take Tour52