Skip to content

rocketsh

Brain edited this page May 3, 2023 · 10 revisions

rocketsh

The interactive shell used to execute commands and run programs. Launched by init.

image

Rocket Shell Commands

The rocketsh shell supports two forms of input; firstly any command you type is searched for as a program under the /programs directory. If it can be found it is executed.

If no matching program can be found, the line is passed to EVAL instead and any changes to the program state will be inherited by rocketsh, including documented variables below.

Shell Variables

The rocketsh shell has several documented variables, which can be set via the command prompt. These are:

PROMPT$

Change PROMPT$ to change the shell prompt from the default of ROCKETSH to the specified value. ANSI escape sequences are supported. You can use CHR$(27) to insert the escape chracter:

PROMPT$ = CHR$(27) + "[31mRED PROMPT" + CHR$(27) + "[37m"

and this will set the shell prompt to dark red:

image

PATH$

The directory to search in for programs ran at the command prompt. It defaults to /programs.

PATH$ = "/harddisk/progs"
Clone this wiki locally