Documentation ¶
Index ¶
- Constants
- type Modes
- type MouseMode
- type Terminal
- func (terminal *Terminal) ActiveBuffer() *buffer.Buffer
- func (terminal *Terminal) AttachResizeHandler(handler chan bool)
- func (terminal *Terminal) AttachReverseHandler(handler chan bool)
- 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) IsAutoWrap() bool
- func (terminal *Terminal) IsOSCTerminator(char rune) bool
- func (terminal *Terminal) Modes() Modes
- func (terminal *Terminal) Paste(data []byte) error
- func (terminal *Terminal) Read() error
- func (terminal *Terminal) ResetVerticalMargins()
- 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) SetAutoWrap(enabled bool)
- func (terminal *Terminal) SetBracketedPasteMode(enabled bool)
- func (terminal *Terminal) SetCharSize(w float32, h float32)
- func (terminal *Terminal) SetDirty()
- func (terminal *Terminal) SetInsertMode()
- func (terminal *Terminal) SetLineFeedMode()
- func (terminal *Terminal) SetMouseMode(mode MouseMode)
- func (terminal *Terminal) SetNewLineMode()
- func (terminal *Terminal) SetOriginMode(enabled bool)
- func (terminal *Terminal) SetProgram(program uint32)
- func (terminal *Terminal) SetReplaceMode()
- func (terminal *Terminal) SetScreenMode(enabled bool)
- 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
- func (terminal *Terminal) WriteReturn() 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) AttachResizeHandler ¶ added in v0.8.8
func (*Terminal) AttachReverseHandler ¶ added in v0.9.0
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) IsAutoWrap ¶ added in v0.8.9
func (*Terminal) IsOSCTerminator ¶ added in v0.8.0
func (*Terminal) Read ¶
Read needs to be run on a goroutine, as it continually reads output to set on the terminal
func (*Terminal) ResetVerticalMargins ¶ added in v0.8.9
func (terminal *Terminal) ResetVerticalMargins()
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) SetAutoWrap ¶ added in v0.8.9
func (*Terminal) SetBracketedPasteMode ¶
func (*Terminal) SetCharSize ¶
func (*Terminal) SetInsertMode ¶ added in v0.8.9
func (terminal *Terminal) SetInsertMode()
func (*Terminal) SetLineFeedMode ¶ added in v0.8.9
func (terminal *Terminal) SetLineFeedMode()
func (*Terminal) SetMouseMode ¶
func (*Terminal) SetNewLineMode ¶ added in v0.8.9
func (terminal *Terminal) SetNewLineMode()
func (*Terminal) SetOriginMode ¶ added in v0.8.9
func (*Terminal) SetProgram ¶
func (*Terminal) SetReplaceMode ¶ added in v0.8.9
func (terminal *Terminal) SetReplaceMode()
func (*Terminal) SetScreenMode ¶ added in v0.9.0
func (*Terminal) UseAltBuffer ¶
func (terminal *Terminal) UseAltBuffer()
func (*Terminal) UseInternalBuffer ¶
func (terminal *Terminal) UseInternalBuffer()
func (*Terminal) UseMainBuffer ¶
func (terminal *Terminal) UseMainBuffer()
func (*Terminal) UsingMainBuffer ¶
func (*Terminal) WriteReturn ¶ added in v0.8.8
type TerminalCharSet ¶
type TerminalCharSet int
Click to show internal directories.
Click to hide internal directories.