Interface ShellConfig
Source: shell.ts
Configuration options for initializing a new Shell instance.
Properties
app?
optionalapp?:App<WindowProps>
The application instance that owns and manages this shell.
path?
optionalpath?:string
The initial working directory path (e.g., "~" or "/bin").
input?
optionalinput?: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?
optionalenv?:Record<string,string>
Optional initial environment variables to populate the shell with.