Documentation
¶
Overview ¶
Package terminal serves a shell over a WebSocket for the dashboard. Binary messages carry terminal bytes both ways; text messages from the browser are JSON resize requests: {"cols":80,"rows":24}.
Index ¶
Constants ¶
const Supported = true
Supported reports whether this platform has a terminal.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Shell string // default $SHELL, then /bin/bash, then /bin/sh
Dir string // default the home folder
Env []string // default os.Environ()
Logger *slog.Logger
// Who names the session in the log, for example the remote address.
Who string
}
Options configure a terminal session.