terminal/HostTerminalSurface
import { … } from 'zidane-ui/terminal'ui/src/terminal/HostTerminalSurface.tsx
Components#
HostTerminalSurfaceComponent#
One view of one of the host's terminals, attached for as long as it is mounted.
function HostTerminalSurface(props: HostTerminalSurfaceProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | HostTerminalSurfaceProps | The terminal, its scope and label, where its paths resolve, focus and the PTY's size. |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| autoFocus? | boolean | Take keyboard focus on mount (the user opened or picked this terminal). |
| className? | string | Extra classes on the root. |
| cwd | string | Where relative paths printed by the shell resolve; empty = don't link files. |
| focusSeq? | number | A new value takes focus again while |
| label | string | The terminal's label, for "Add to chat" excerpts. |
| ptyCols | number | The PTY's columns (from the host): the grid always has its size, whatever this view's container fits. |
| ptyRows | number | The PTY's rows. |
| ptySeq | number |
|
| scope | TerminalScope | Whose terminal (handed to the app's link and chat actions). |
| serverName? | string | null | The machine the terminal runs on when it is not this one: its loopback links are not this computer's. |
| terminalId | string | The terminal this view attaches to. |
Interfaces#
HostTerminalSurfacePropsInterface#
Props for HostTerminalSurface.
interface HostTerminalSurfacePropsProperties
| Name | Type | Description |
|---|---|---|
| autoFocus? | boolean | Take keyboard focus on mount (the user opened or picked this terminal). |
| className? | string | Extra classes on the root. |
| cwd | string | Where relative paths printed by the shell resolve; empty = don't link files. |
| focusSeq? | number | A new value takes focus again while |
| label | string | The terminal's label, for "Add to chat" excerpts. |
| ptyCols | number | The PTY's columns (from the host): the grid always has its size, whatever this view's container fits. |
| ptyRows | number | The PTY's rows. |
| ptySeq | number |
|
| scope | TerminalScope | Whose terminal (handed to the app's link and chat actions). |
| serverName? | string | null | The machine the terminal runs on when it is not this one: its loopback links are not this computer's. |
| terminalId | string | The terminal this view attaches to. |