Documentation
¶
Index ¶
- Constants
- func KeyFunction(n int) int
- type Term
- func (t *Term) AltScreen() bool
- func (t *Term) Close()
- func (t *Term) Cursor() (x, y int, visible bool)
- func (t *Term) Generation() uint64
- func (t *Term) HasScrollback() bool
- func (t *Term) KeyboardKey(key int, mod int) []byte
- func (t *Term) KeyboardUnichar(r rune, mod int) []byte
- func (t *Term) MouseButton(button int, pressed bool, row, col, mod int) []byte
- func (t *Term) MouseMode() int
- func (t *Term) MouseMove(row, col, mod int) []byte
- func (t *Term) ProduceDiff() cell.Diff
- func (t *Term) Resize(rows, cols int)
- func (t *Term) ScrollBy(delta int)
- func (t *Term) ScrollOffset() int
- func (t *Term) ScrollUIState() (offset, content, viewport int)
- func (t *Term) SearchScrollback(query string, towardOlder bool) (found bool, matches int)
- func (t *Term) SetOutputCallback(fn func([]byte))
- func (t *Term) SetScrollUIOffset(offset int)
- func (t *Term) Size() (cols, rows int)
- func (t *Term) Snapshot() []cell.Cell
- func (t *Term) TakeBell() bool
- func (t *Term) Title() string
- func (t *Term) Write(p []byte)
Constants ¶
View Source
const ( ModNone = 0 ModShift = 1 ModAlt = 2 ModCtrl = 4 )
View Source
const ( KeyEnter = 1 KeyTab = 2 KeyBackspace = 3 KeyEscape = 4 KeyUp = 5 KeyDown = 6 KeyLeft = 7 KeyRight = 8 KeyIns = 9 KeyDel = 10 KeyHome = 11 KeyEnd = 12 KeyPageUp = 13 KeyPageDown = 14 )
Variables ¶
This section is empty.
Functions ¶
func KeyFunction ¶
Types ¶
type Term ¶
type Term struct {
// contains filtered or unexported fields
}
Term wraps a libvterm instance with dirty tracking and scrollback.
func (*Term) Generation ¶
func (*Term) HasScrollback ¶
func (*Term) MouseButton ¶
MouseButton sends a mouse button via libvterm (row/col 0-based).
func (*Term) ProduceDiff ¶
func (*Term) ScrollOffset ¶
func (*Term) ScrollUIState ¶
ScrollUIState returns scrollbar metrics: offset 0 = top of history, max = live bottom.
func (*Term) SearchScrollback ¶
SearchScrollback finds query in scrollback+screen. towardOlder=true searches into history. On success, scrolls so the match line is visible near the top and returns true.
func (*Term) SetOutputCallback ¶
func (*Term) SetScrollUIOffset ¶
SetScrollUIOffset sets scroll position from a UI scrollbar (0 = top of history).
Click to show internal directories.
Click to hide internal directories.