Daedalus Dock - Modules - TypesVar Details - Proc Details

terminal_program

Vars

is_executableSet to FALSE if the program can't actually be run.
req_accessBehaves identically to req_access on /obj

Procs

can_executeCalled before a program is run.
executeCalled when a program is run.
get_osReturns the operating system.
on_closeCalled when a program is no longer running
parse_std_inHelper for splitting stdin into command and arguments.
peripheral_inputCalled by computers to forward commands from peripherals to programs. Should probably be on OS but oh well.
tickProcessing function, Called by the OS, or the computer if src is the OS.

Var Details

is_executable

Set to FALSE if the program can't actually be run.

req_access

Behaves identically to req_access on /obj

Proc Details

can_execute

Called before a program is run.

execute

Called when a program is run.

get_os

Returns the operating system.

on_close

Called when a program is no longer running

parse_std_in

Helper for splitting stdin into command and arguments.

peripheral_input

Called by computers to forward commands from peripherals to programs. Should probably be on OS but oh well.

tick

Processing function, Called by the OS, or the computer if src is the OS.