Documentation ¶
Index ¶
- type EventAPC
- type EventBell
- type EventClosed
- type EventNotify
- type EventPanic
- type EventTitle
- type Image
- type Model
- func (vt *Model) Attach(fn func(ev vaxis.Event))
- func (vt *Model) Blur()
- func (vt *Model) Close()
- func (vt *Model) Detach()
- func (vt *Model) Draw(win vaxis.Window)
- func (vt *Model) Focus()
- func (vt *Model) Resize(w int, h int)
- func (vt *Model) Start(cmd *exec.Cmd) error
- func (vt *Model) StartWithSize(cmd *exec.Cmd, width int, height int) error
- func (vt *Model) String() string
- func (vt *Model) Update(msg vaxis.Event)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventAPC ¶ added in v0.5.0
type EventAPC struct {
Payload string
}
EventAPC is emitted when an APC sequence is received in the terminal
type EventClosed ¶
type EventNotify ¶ added in v0.5.0
type EventPanic ¶
type EventPanic error
type EventTitle ¶ added in v0.1.2
type EventTitle string
type Model ¶
type Model struct { // If true, OSC8 enables the output of OSC8 strings. Otherwise, any OSC8 // sequences will be stripped OSC8 bool // Set the TERM environment variable to be passed to the command's // environment. If not set, xterm-256color will be used TERM string // contains filtered or unexported fields }
Model models a virtual terminal
func (*Model) Start ¶
Start starts the terminal with the specified command. Start returns when the command has been successfully started.
func (*Model) StartWithSize ¶ added in v0.7.1
Click to show internal directories.
Click to hide internal directories.