Documentation ¶
Index ¶
- Constants
- type Modes
- type MouseMode
- type Terminal
- func (terminal *Terminal) ActiveBuffer() *buffer.Buffer
- func (terminal *Terminal) AttachTitleChangeHandler(handler chan bool)
- func (terminal *Terminal) CheckDirty() bool
- func (terminal *Terminal) Clear()
- func (terminal *Terminal) ExitInternalBuffer()
- func (terminal *Terminal) GetCell(col uint16, row uint16) *buffer.Cell
- func (terminal *Terminal) GetLogicalCursorX() uint16
- func (terminal *Terminal) GetLogicalCursorY() uint16
- func (terminal *Terminal) GetMouseMode() MouseMode
- func (terminal *Terminal) GetScrollOffset() uint
- func (terminal *Terminal) GetSize() (int, int)
- func (terminal *Terminal) GetTitle() string
- func (terminal *Terminal) GetVisibleLines() []buffer.Line
- func (terminal *Terminal) IsApplicationCursorKeysModeEnabled() bool
- func (terminal *Terminal) Modes() Modes
- func (terminal *Terminal) Paste(data []byte) error
- func (terminal *Terminal) Read() error
- func (terminal *Terminal) ScrollDown(lines uint16)
- func (terminal *Terminal) ScrollPageDown()
- func (terminal *Terminal) ScrollPageUp()
- func (terminal *Terminal) ScrollToEnd()
- func (terminal *Terminal) ScrollUp(lines uint16)
- func (terminal *Terminal) SetBracketedPasteMode(enabled bool)
- func (terminal *Terminal) SetCharSize(w float32, h float32)
- func (terminal *Terminal) SetDirty()
- func (terminal *Terminal) SetMouseMode(mode MouseMode)
- func (terminal *Terminal) SetProgram(program uint32)
- func (terminal *Terminal) SetSize(newCols uint, newLines uint) error
- func (terminal *Terminal) SetTitle(title string)
- func (terminal *Terminal) UseAltBuffer()
- func (terminal *Terminal) UseInternalBuffer()
- func (terminal *Terminal) UseMainBuffer()
- func (terminal *Terminal) UsingMainBuffer() bool
- func (terminal *Terminal) Write(data []byte) error
- type TerminalCharSet
- type Winsize
Constants ¶
View Source
const ( MainBuffer uint8 = 0 AltBuffer uint8 = 1 InternalBuffer uint8 = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
func (*Terminal) ActiveBuffer ¶
func (*Terminal) AttachTitleChangeHandler ¶
func (*Terminal) CheckDirty ¶
func (*Terminal) ExitInternalBuffer ¶
func (terminal *Terminal) ExitInternalBuffer()
func (*Terminal) GetLogicalCursorX ¶
func (*Terminal) GetLogicalCursorY ¶
func (*Terminal) GetMouseMode ¶
func (*Terminal) GetScrollOffset ¶
func (*Terminal) GetVisibleLines ¶
func (*Terminal) IsApplicationCursorKeysModeEnabled ¶
func (*Terminal) Read ¶
Read needs to be run on a goroutine, as it continually reads output to set on the terminal
func (*Terminal) ScrollDown ¶
func (*Terminal) ScrollPageDown ¶
func (terminal *Terminal) ScrollPageDown()
func (*Terminal) ScrollPageUp ¶
func (terminal *Terminal) ScrollPageUp()
func (*Terminal) ScrollToEnd ¶
func (terminal *Terminal) ScrollToEnd()
func (*Terminal) SetBracketedPasteMode ¶
func (*Terminal) SetCharSize ¶
func (*Terminal) SetMouseMode ¶
func (*Terminal) SetProgram ¶
func (*Terminal) UseAltBuffer ¶
func (terminal *Terminal) UseAltBuffer()
func (*Terminal) UseInternalBuffer ¶
func (terminal *Terminal) UseInternalBuffer()
func (*Terminal) UseMainBuffer ¶
func (terminal *Terminal) UseMainBuffer()
func (*Terminal) UsingMainBuffer ¶
type TerminalCharSet ¶
type TerminalCharSet int
Click to show internal directories.
Click to hide internal directories.