Documentation ¶
Index ¶
- type Buffer
- func (buffer *Buffer) Backspace()
- func (buffer *Buffer) BottomMargin() uint
- func (buffer *Buffer) CarriageReturn()
- func (buffer *Buffer) Clear()
- func (buffer *Buffer) CursorAttr() *CellAttributes
- func (buffer *Buffer) CursorColumn() uint16
- func (buffer *Buffer) CursorLine() uint16
- func (buffer *Buffer) DeleteChars(n int)
- func (buffer *Buffer) DeleteLines(count int)
- func (buffer *Buffer) EndSelection(col uint16, row uint16, complete bool)
- func (buffer *Buffer) EraseCharacters(n int)
- func (buffer *Buffer) EraseDisplay()
- func (buffer *Buffer) EraseDisplayFromCursor()
- func (buffer *Buffer) EraseDisplayToCursor()
- func (buffer *Buffer) EraseLine()
- func (buffer *Buffer) EraseLineFromCursor()
- func (buffer *Buffer) EraseLineToCursor()
- func (buffer *Buffer) GetCell(viewCol uint16, viewRow uint16) *Cell
- func (buffer *Buffer) GetHintAtPosition(col uint16, row uint16) *hints.Hint
- func (buffer *Buffer) GetScrollOffset() uint
- func (buffer *Buffer) GetSelectedText() string
- func (buffer *Buffer) GetURLAtPosition(col uint16, row uint16) string
- func (buffer *Buffer) GetVisibleLines() []Line
- func (buffer *Buffer) HasScrollableRegion() bool
- func (buffer *Buffer) Height() int
- func (buffer *Buffer) InScrollableRegion() bool
- func (buffer *Buffer) InSelection(col uint16, row uint16) bool
- func (buffer *Buffer) Index()
- func (buffer *Buffer) InsertBlankCharacters(count int)
- func (buffer *Buffer) InsertLines(count int)
- func (buffer *Buffer) IsDirty() bool
- func (buffer *Buffer) MovePosition(x int16, y int16)
- func (buffer *Buffer) NewLine()
- func (buffer *Buffer) RawLine() uint64
- func (buffer *Buffer) ResizeView(width uint16, height uint16)
- func (buffer *Buffer) RestoreCursor()
- func (buffer *Buffer) ReverseIndex()
- func (buffer *Buffer) SaveCursor()
- func (buffer *Buffer) ScrollDown(lines uint16)
- func (buffer *Buffer) ScrollPageDown()
- func (buffer *Buffer) ScrollPageUp()
- func (buffer *Buffer) ScrollToEnd()
- func (buffer *Buffer) ScrollUp(lines uint16)
- func (buffer *Buffer) SelectWordAtPosition(col uint16, row uint16)
- func (buffer *Buffer) SetAutoWrap(enabled bool)
- func (buffer *Buffer) SetInsertMode()
- func (buffer *Buffer) SetPosition(col uint16, line uint16)
- func (buffer *Buffer) SetReplaceMode()
- func (buffer *Buffer) SetVerticalMargins(top uint, bottom uint)
- func (buffer *Buffer) StartSelection(col uint16, row uint16)
- func (buffer *Buffer) Tab()
- func (buffer *Buffer) TopMargin() uint
- func (buffer *Buffer) ViewHeight() uint16
- func (buffer *Buffer) ViewWidth() uint16
- func (buffer *Buffer) Width() uint16
- func (buffer *Buffer) Write(runes ...rune)
- type Cell
- type CellAttributes
- type Line
- type Position
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func NewBuffer ¶
func NewBuffer(viewCols uint16, viewLines uint16, attr CellAttributes) *Buffer
NewBuffer creates a new terminal buffer
func (*Buffer) BottomMargin ¶
func (*Buffer) CarriageReturn ¶
func (buffer *Buffer) CarriageReturn()
func (*Buffer) CursorAttr ¶
func (buffer *Buffer) CursorAttr() *CellAttributes
func (*Buffer) CursorColumn ¶
Column returns cursor column
func (*Buffer) DeleteChars ¶
func (*Buffer) DeleteLines ¶
func (*Buffer) EndSelection ¶
func (*Buffer) EraseCharacters ¶
func (*Buffer) EraseDisplay ¶
func (buffer *Buffer) EraseDisplay()
func (*Buffer) EraseDisplayFromCursor ¶
func (buffer *Buffer) EraseDisplayFromCursor()
func (*Buffer) EraseDisplayToCursor ¶
func (buffer *Buffer) EraseDisplayToCursor()
func (*Buffer) EraseLineFromCursor ¶
func (buffer *Buffer) EraseLineFromCursor()
func (*Buffer) EraseLineToCursor ¶
func (buffer *Buffer) EraseLineToCursor()
func (*Buffer) GetHintAtPosition ¶
func (*Buffer) GetScrollOffset ¶
func (*Buffer) GetSelectedText ¶
func (*Buffer) GetURLAtPosition ¶
func (*Buffer) GetVisibleLines ¶
func (*Buffer) HasScrollableRegion ¶
func (*Buffer) InScrollableRegion ¶
func (*Buffer) InsertBlankCharacters ¶
func (*Buffer) InsertLines ¶
func (*Buffer) MovePosition ¶
func (*Buffer) ResizeView ¶
func (*Buffer) RestoreCursor ¶
func (buffer *Buffer) RestoreCursor()
func (*Buffer) ReverseIndex ¶
func (buffer *Buffer) ReverseIndex()
func (*Buffer) SaveCursor ¶
func (buffer *Buffer) SaveCursor()
func (*Buffer) ScrollDown ¶
func (*Buffer) ScrollPageDown ¶
func (buffer *Buffer) ScrollPageDown()
func (*Buffer) ScrollPageUp ¶
func (buffer *Buffer) ScrollPageUp()
func (*Buffer) ScrollToEnd ¶
func (buffer *Buffer) ScrollToEnd()
func (*Buffer) SelectWordAtPosition ¶
func (*Buffer) SetAutoWrap ¶
func (*Buffer) SetInsertMode ¶
func (buffer *Buffer) SetInsertMode()
func (*Buffer) SetPosition ¶
func (*Buffer) SetReplaceMode ¶
func (buffer *Buffer) SetReplaceMode()
func (*Buffer) SetVerticalMargins ¶
func (*Buffer) StartSelection ¶
func (*Buffer) ViewHeight ¶
type Cell ¶
type Cell struct {
// contains filtered or unexported fields
}
func NewBackgroundCell ¶
func (*Cell) Attr ¶
func (cell *Cell) Attr() CellAttributes
type CellAttributes ¶
type Line ¶
type Line struct {
// contains filtered or unexported fields
}
func (*Line) Cleanse ¶
func (line *Line) Cleanse()
Cleanse removes null bytes from the end of the row
func (*Line) CutCellsAfter ¶
@todo test these (ported from legacy) ------------------
func (*Line) CutCellsFromBeginning ¶
func (*Line) CutCellsFromEnd ¶
Click to show internal directories.
Click to hide internal directories.