Daedalus Dock - Modules - TypesVar Details - Proc Details

operating_system

Vars

active_programThe current focused program.
current_directoryCurrent directory being operated on.
deadlockedHalt And Catch Fire (Prevents STDIN, closest we can get to a HALT state.)
logged_inGotta be logged in to access anything.
processing_programsAll programs currently running on the machine.

Procs

add_processing_programSetter for the processing programs list. Use execute_program() instead!
change_dirChange active directory.
clean_upUnload everything including myself
clear_screenClear the screen completely.
execute_programRun a program.
get_fileFind a file by it's name in the given directory. Defaults to the current directory.
is_operationalShould run this before executing any commands.
move_fileMove a file to another location.
printlnWrite to the terminal.
processing_program_movedHandles any running programs being moved in the filesystem.
remove_processing_programSetter for the processing programs list. Use unload_program() instead!
resolve_filepathReturns a file or folder with the given name inside of the given filepath relative to the working directory.
set_active_programSetter for active program. Use execute_program() or unload_program() instead!
try_background_programMove a program to background
try_std_inWrapper around handling text input to make sure we can actually handle it.
unload_programClose a program.

Var Details

active_program

The current focused program.

current_directory

Current directory being operated on.

deadlocked

Halt And Catch Fire (Prevents STDIN, closest we can get to a HALT state.)

logged_in

Gotta be logged in to access anything.

processing_programs

All programs currently running on the machine.

Proc Details

add_processing_program

Setter for the processing programs list. Use execute_program() instead!

change_dir

Change active directory.

clean_up

Unload everything including myself

clear_screen

Clear the screen completely.

execute_program

Run a program.

get_file

Find a file by it's name in the given directory. Defaults to the current directory.

is_operational

Should run this before executing any commands.

move_file

Move a file to another location.

println

Write to the terminal.

processing_program_moved

Handles any running programs being moved in the filesystem.

remove_processing_program

Setter for the processing programs list. Use unload_program() instead!

resolve_filepath

Returns a file or folder with the given name inside of the given filepath relative to the working directory.

set_active_program

Setter for active program. Use execute_program() or unload_program() instead!

try_background_program

Move a program to background

try_std_in

Wrapper around handling text input to make sure we can actually handle it.

unload_program

Close a program.