Documentation
¶
Overview ¶
Package terminal is the Terminal area of the native desktop: tabs of interactive shells running in real PTYs on the server, shown by MyGo's terminal plugin (libghostty-vt, loaded at run time without cgo) and fed by the WebSocket PTY endpoint /api/v1/terminal/pty, the same one the Web UI's xterm.js pane uses (binary frames carry I/O, JSON text frames carry ready/exit/resize/close).
libghostty-vt is not linked: the plugin downloads the platform library into the user cache the first time a terminal opens (checked against a SHA-256) or loads it from $MYGO_GHOSTTY_VT. When it cannot be loaded the area shows the reason and offers a retry, and points to `pando app` (Web UI).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
Terminal is the area's state (UI thread only).
func (*Terminal) Close ¶
func (t *Terminal) Close()
Close hangs up the terminals without killing the shells (they stay on the server and can be reattached by id, as the Web UI does on reload).
func (*Terminal) HeaderActions ¶
HeaderActions adds New and Clear.