CATRUN
CATRUN is a simple tool for the Amstrad CPC machines to fasten the process of disc's content discovery / launch a program.
When inserting a new disc into the machine, I bet than 95% of the regular Amstrad CPC users will first type the CAT command to discover its content, then type RUN"FILENAME to launch a targeted program.
With CATRUN, the user can press CTRL+TAB (or SHIFT+TAB for 464 owners) at machine startup (or any other time, of course) to show the list of files stored on the disc, then use the arrow keys to select the targeted file to execute, then press RETURN/ENTER/COPY key to auto-type the RUN command. Few key presses are saved in the process, while enhancing (a little bit !) the launching experience.
While selecting a file, it's also possible to:
When inserting a new disc into the machine, I bet than 95% of the regular Amstrad CPC users will first type the CAT command to discover its content, then type RUN"FILENAME to launch a targeted program.
With CATRUN, the user can press CTRL+TAB (or SHIFT+TAB for 464 owners) at machine startup (or any other time, of course) to show the list of files stored on the disc, then use the arrow keys to select the targeted file to execute, then press RETURN/ENTER/COPY key to auto-type the RUN command. Few key presses are saved in the process, while enhancing (a little bit !) the launching experience.
While selecting a file, it's also possible to:
- use H key to print the program help
- use ESC key to just get back to BASIC (cf. discard the RUN command)
- use TAB key to redo a catalogue discovery (cf. when the user is willing to change disc and rebrowse its content)
- use R key to rename the selected file
- use D or E key to delete the selected file
- use A or B key to switch current drive to A: or B:
- use P key to open an ASCII file with with Protext
- use S key for multiselection. You can combine that with delete operations.
Starting V1.2, if UniDOS gets detected:
And that's all :)
Few additional notes...
Some extra-testing has been achieved by Poulette73 (thanks!) on multiple hardware configurations (cf. when Amsdos gets patched with custom file systems):
Final words.
This program is useful to me. With some luck it will also be useful to you ! :)
>>norecess464.condense 2023!
Thanks to TotO, Offset, Poulette73, roudoudou & everyone else keeping the Amstrad scene alive! =)
- use CLR key to navigate to root folder
- use DEL key to navigate to parent folder
- use RETURN/ENTER/COPY to navigate into a sub-folder
- use N key to create a new folder
- use C key to copy a file to the other logical drive (can also be combined with S key (multiselection))
And that's all :)
Few additional notes...
- supports both MODE 1 and MODE 2. If the current video mode is MODE 0, then a regular CAT will be applied and the user will get back to BASIC
- to be available system-wide from the BASIC prompt, this program is distributed as a ROM to be installed on a ROMBoard (X-MEM, FlashGordon, etc.)
- the program only takes few bytes for the ROM initialization (cf. required for the system handling of |CATRUN shortcut through Control+Tab keys). The execution itself of the program does not require any extra RAM!
- if the catalogue on disc appears to be a CATART, then a regular CAT will be applied and the user will get back to BASIC
- if the catalogue appears to be impossible to browse for whatever reasons, then a regular CAT will be applied and the user will get back to BASIC. This happens for example with the (great!) Duke's M4 expansion not behaving internally like the regular CAT from Amstrad -- for programmers: the 2K buffer not being populated by CAS CATALOG.
- generally speaking, this program refers only to the firmware routines. It provides full compatibility between 464, 664 and 6128 Amstrad CPC machines (tested)
- a test is done to ensure that the call of |CATRUN is made from the BASIC prompt. There would be no purpose to trigger CATRUN from Protext command prompt (yes, it's possible!), for example.
- UniDOS-specific: the current path gets displayed on top of all printed catalogues
- the build date is displayed in the Help
- doesn't assume AmsDOS is at ROM7
- internally relies on a "fast print routine" (faster than the standard Amstrad one).
- when displaying a catalog, CATRUN will try to pre-select an executable file, based on filename (thanks Eto/Prodatron!):
- if it finds a file "disc."/"disk."/"disc.bas"/"disk.bas"/"disc.bin"/"disk.bin"
- and if not, if it finds the first "*. "
- and if not, if it finds the first "*.bas"
- and if not, if it finds the first "*.bin"
(very useful, most of the time it's accurate.)
Some extra-testing has been achieved by Poulette73 (thanks!) on multiple hardware configurations (cf. when Amsdos gets patched with custom file systems):
- M4 Board + USB storage is well supported
- RSF3 + USB storage is well supported
- CubeMDOS, UniDOS, ParaDOS and X-Ddos work fine too
Final words.
This program is useful to me. With some luck it will also be useful to you ! :)
>>norecess464.condense 2023!
Thanks to TotO, Offset, Poulette73, roudoudou & everyone else keeping the Amstrad scene alive! =)