- Added /ansi option to type command
- Fixed help suggestions from Lee, and found a few more.
- Increased variable value length, and added length checking
Ver 0.5 - May 6th 2019
- Added 'IF' statement
Ver 0.4 - May 5th 2019
- Added initial FTP get functionality
Now that it has 'if' you can use it to make pretty custom menus, get keyboard input and conditionally operate on that input...
A auto starting command module GROM and ROM pair. The GROM just kicks off the ROM.
Contains all the commands from TIPIFM for file and directory management in a mult-DSK... and TIPI aware way.
So, you can copy files to and from TIPI. You can copy files to and from 2 devices that both think they are DSK1.
Since TIPIFM, this has added:
* scripting support with the 'call' command.
* EA5 loading with 'load' command.
* FG99 cartridge swapping with 'fg99' command.
* an FTP client that supports 'get', TIFILES, and foreign files
* variables, labels, goto, if, keyboard input from script
* ANSI display
Using PabloDraw on my linux machine, I created this sample ANSI screen:
IMG_20190506_173702425.jpg 604.64KB 2 downloads
I use a script on the 4A that displays the file, then loops on keyboard input, and launches the option chosen.
if $(K) == F then goto LNFB
tipimap DSK1 TIPI.FB4TH210
Like how you might have done it back in MS DOS 2.11
You can also emit ansi escape codes with the echo command.
Full Help Dump
call <filepath> - run a script. Must be DISPLAY VARIABLE file. Special file: AUTOCMD - First drive will be scanned for existance of AUTOCMD. If present it will run. Some behavior changes when AUTOCMD is found: * startup banner is suppressed. * initial tipibeeps sound is suppressed.
cd <path>|.. - switch to a different drive or directory
checksum <file> - 16 bit checksum of a file in the current directory
cls - clear the screen and relocate cursor to upper left
color <F> [B] - set text and background color (0-15) F - foreground text color B - optional, background color In 80 column mode, this sets colors for subsequent text, and current border. In 40 column mode, it sets the full screen colors. colors are TI
copy <filename> <path> - copy a file to a different directory or device
delete <filename> - delete file in current directory
dir [/w] [path] - list current directory or directory for given path /w : optional. Output a simplified listing in multiple columns
drives - list device names grouped by CRU base address
echo [/n] [text] - print text to ANSI terminal screen /n : optional, do not print newline after text substitutions: * '\e' : will output an ESCAPE, ascii 27 character
env - list all variables and their values Variables are set by assigning a name of up to 10 characters a value, or by specific commands. example: NAME1=FLINSTONE Variable names are case insensitive. Variables may be used in any command by the '$' + <name> format. You may disambiguate with the '$' '(' <name ')' syntax. examples: echo $NAME1 echo $(NAME1)A99
exit - quit Force Command
fg99 <cart> - load cartridge from FinalGROM99 sd card cart - maximum 8 character name without the '.bin'
ftp - open an ftp prompt. Data connection will be in passive mode only.
goto <label> - jump to the line following a label
help - list available commands help <command> - show help for individual command
if <expr> then <command> - conditional statement expression following 'if' is evaluated. If the expression evaluates to true, the rest of the command is executed. example: if $A == C then goto LC expressions syntax: [not] <lvalue> ' ' <operator> ' ' <rvalue> <lvalue> - quoted string which may contain variable references <rvalue> - quoted string which may contain variable references <operator> - '=='
load <file> - load and run an EA5 program image file or files
lvl2 <crubase> - list level 2 I/O subprograms in DSR ROM at the specified CRU base address
mkdir <dirname> - create new directory in current path
protect <filename> - protect a file in current path
readkey <varname> - set varname to value of key currently pressed
rename <old-name> <new-name> - rename a file or directory in the current path
rmdir <dirname> - remove a child directory from the current directory
tipibeeps - play tipi styled sound list
tipimap [/c] [ auto on|off ] [ <drive> [path] ] - set or get a tipi drive mapping If no drive is specified, all configuration items are listed /c - optional. If specified, erases the specified drive mapping drive - the name of the drive path - the directory to set auto - set to on or off to map DSK1 when PROGRAM image is loaded
type [/ansi] <filepath> - copy the contents of the file to the screen /ansi - optional. Open in DISPLAY/FIXED mode instead of DISPLAY/VARIABLE and terminate output on CTRL-Z character (26)
unprotect <filename> - unprotect a file in current path
ver - display Force Command version information
width <40|80> - change display to 40 or 80 column mode