Skip to content

Interface ShellConfig

Source: shell.ts

Configuration options for initializing a new Shell instance.

Properties

app?

optional app: App<WindowProps>

The application instance that owns and manages this shell.


path?

optional path: string

The initial working directory path (e.g., "~" or "/bin").


input?

optional input: string

A string to pre-fill the shell input with.


virtualRoot

virtualRoot: VirtualRoot


systemManager

systemManager: SystemManager


settingsManager

settingsManager: SettingsManager


exit()

exit: () => void

Callback function to trigger when the shell process should be terminated.

Returns

void


sizeRef

sizeRef: { current: Vector2; }

A reactive reference containing the current terminal dimensions in rows and columns.

current

current: Vector2


env?

optional env: Record<string, string>

Optional initial environment variables to populate the shell with.

Built by Prozilla