terminal

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 11 Imported by: 0

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 New

func New(a *app.Context) *Terminal

New returns the terminal view.

func (*Terminal) Build

func (t *Terminal) Build(c *ui.Context, r *ui.Route)

Build shows the tab strip and the active terminal.

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

func (t *Terminal) HeaderActions(c *ui.Context)

HeaderActions adds New and Clear.

func (*Terminal) Title

func (t *Terminal) Title() string

Title is the header title.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL