Versions in this module Expand all Collapse all v0 v0.1.1 Oct 7, 2026 v0.1.0 Oct 6, 2026 Changes in this version + const AttrBlueMask + const AttrBlueShift + const AttrCMDefault + const AttrCMMask + const AttrCMP16 + const AttrCMP256 + const AttrCMRGB + const AttrGreenMask + const AttrGreenShift + const AttrPColorMask + const AttrRGBMask + const AttrRedMask + const AttrRedShift + const BgFlagDim + const BgFlagHasExtended + const BgFlagItalic + const BgFlagOverline + const BgFlagProtected + const ContentCodepointMask + const ContentHasContentMask + const ContentIsCombinedMask + const ContentWidthMask + const ContentWidthShift + const DefaultAttr + const DefaultColor + const DefaultExt + const ExtFlagUnderlineStyle + const ExtFlagVariantOffset + const FgFlagBlink + const FgFlagBold + const FgFlagInverse + const FgFlagInvisible + const FgFlagStrikethrough + const FgFlagUnderline + const MaxBufferSize + const MinimumCols + const MinimumRows + const NullCellChar + const NullCellCode + const NullCellWidth + const ParserPayloadLimit + const WhitespaceCellChar + const WhitespaceCellCode + const WhitespaceCellWidth + var CHARSETS = map[byte]Charset + var CharsetBritish = Charset + var CharsetDECSpecialGraphics = Charset + var CharsetDutch = Charset + var CharsetFinnish = Charset + var CharsetFrench = Charset + var CharsetFrenchCanadian = Charset + var CharsetGerman = Charset + var CharsetItalian = Charset + var CharsetNorwegianDanish = Charset + var CharsetSpanish = Charset + var CharsetSwedish = Charset + var CharsetSwiss = Charset + var VT500TransitionTable = buildVT500TransitionTable() + func CharDataAttr(cd CharData) uint32 + func CharDataChar(cd CharData) string + func CharDataCode(cd CharData) uint32 + func CharDataWidth(cd CharData) int + func CreatePropertyValue(charKind, width int, shouldJoin bool) int + func ExtractCharPropsWidth(value int) int + func ExtractShouldJoin(value int) bool + func FromColorRGB(c ColorRGB) uint32 + func IdentToString(ident int) string + func StringToUtf32(s string, target []uint32) int + func Utf32ToString(data []uint32, start, end int) string + type ApcFallbackHandler func(ident int, action string, payload ...interface{}) + type ApcHandler interface + End func(success bool) bool + Put func(data []uint32, start, end int) + Start func() + type ApcParser struct + func NewApcParser() *ApcParser + func (p *ApcParser) ClearHandler(ident int) + func (p *ApcParser) Dispose() + func (p *ApcParser) End(success bool) + func (p *ApcParser) Put(data []uint32, start, end int) + func (p *ApcParser) RegisterHandler(ident int, handler ApcHandler) Disposable + func (p *ApcParser) Reset() + func (p *ApcParser) SetHandlerFallback(handler ApcFallbackHandler) + func (p *ApcParser) Start(ident int) + type ApcStringHandler struct + func NewApcStringHandler(handler func(data string) bool) *ApcStringHandler + func (h *ApcStringHandler) End(success bool) bool + func (h *ApcStringHandler) Put(data []uint32, start, end int) + func (h *ApcStringHandler) Start() + type AttributeData struct + Bg uint32 + Extended *ExtendedAttrs + Fg uint32 + func DefaultAttrData() AttributeData + func (a *AttributeData) Clone() AttributeData + func (a *AttributeData) GetBgColor() int + func (a *AttributeData) GetBgColorMode() uint32 + func (a *AttributeData) GetFgColor() int + func (a *AttributeData) GetFgColorMode() uint32 + func (a *AttributeData) GetUnderlineColor() int + func (a *AttributeData) GetUnderlineColorMode() uint32 + func (a *AttributeData) GetUnderlineStyle() UnderlineStyle + func (a *AttributeData) GetUnderlineVariantOffset() int + func (a *AttributeData) HasExtendedAttrs() uint32 + func (a *AttributeData) IsAttributeDefault() bool + func (a *AttributeData) IsBgDefault() bool + func (a *AttributeData) IsBgPalette() bool + func (a *AttributeData) IsBgRGB() bool + func (a *AttributeData) IsBlink() uint32 + func (a *AttributeData) IsBold() uint32 + func (a *AttributeData) IsDim() uint32 + func (a *AttributeData) IsFgDefault() bool + func (a *AttributeData) IsFgPalette() bool + func (a *AttributeData) IsFgRGB() bool + func (a *AttributeData) IsInverse() uint32 + func (a *AttributeData) IsInvisible() uint32 + func (a *AttributeData) IsItalic() uint32 + func (a *AttributeData) IsOverline() uint32 + func (a *AttributeData) IsProtected() uint32 + func (a *AttributeData) IsStrikethrough() uint32 + func (a *AttributeData) IsUnderline() uint32 + func (a *AttributeData) IsUnderlineColorDefault() bool + func (a *AttributeData) IsUnderlineColorPalette() bool + func (a *AttributeData) IsUnderlineColorRGB() bool + func (a *AttributeData) UpdateExtended() + type Buffer struct + Lines *CircularList[*BufferLine] + Markers []*Marker + SavedState SavedCursorState + ScrollBottom int + ScrollTop int + Tabs map[int]bool + X int + Y int + YBase int + YDisp int + func NewBuffer(opts BufferOptions) *Buffer + func (b *Buffer) AddMarker(y int) *Marker + func (b *Buffer) Clear() + func (b *Buffer) ClearAllMarkers() + func (b *Buffer) ClearMarkers(y int) + func (b *Buffer) Cols() int + func (b *Buffer) Dispose() + func (b *Buffer) FillViewportRows(fillAttr *AttributeData) + func (b *Buffer) GetBlankLine(attr *AttributeData, isWrapped bool) *BufferLine + func (b *Buffer) GetNullCell(attr *AttributeData) *CellData + func (b *Buffer) GetWhitespaceCell(attr *AttributeData) *CellData + func (b *Buffer) GetWrappedRangeForLine(y int) (first, last int) + func (b *Buffer) HasScrollback() bool + func (b *Buffer) IsCursorInViewport() bool + func (b *Buffer) NextStop(x int) int + func (b *Buffer) PrevStop(x int) int + func (b *Buffer) Resize(newCols, newRows int) + func (b *Buffer) Rows() int + func (b *Buffer) SetupTabStops(startCol int) + func (b *Buffer) TranslateBufferLineToString(lineIndex int, trimRight bool, startCol, endCol int) string + type BufferActivateEvent struct + ActiveBuffer *Buffer + InactiveBuffer *Buffer + type BufferIndex [2]int + type BufferLine struct + IsWrapped bool + Len int + func NewBufferLine(cols int, fillCell *CellData, isWrapped bool) *BufferLine + func (bl *BufferLine) AddCodepointToCell(index int, codePoint uint32, width int) + func (bl *BufferLine) CleanupMemory() int + func (bl *BufferLine) Clone() *BufferLine + func (bl *BufferLine) CopyCellsFrom(src *BufferLine, srcCol, destCol, length int, applyInReverse bool) + func (bl *BufferLine) CopyFrom(line *BufferLine) + func (bl *BufferLine) DeleteCells(pos, n int, fillCell *CellData) + func (bl *BufferLine) Fill(fillCell *CellData, respectProtect bool) + func (bl *BufferLine) Get(index int) CharData + func (bl *BufferLine) GetBg(index int) uint32 + func (bl *BufferLine) GetCodePoint(index int) uint32 + func (bl *BufferLine) GetExtended(index int) *ExtendedAttrs + func (bl *BufferLine) GetFg(index int) uint32 + func (bl *BufferLine) GetNoBgTrimmedLength() int + func (bl *BufferLine) GetString(index int) string + func (bl *BufferLine) GetTrimmedLength() int + func (bl *BufferLine) GetWidth(index int) int + func (bl *BufferLine) HasContent(index int) uint32 + func (bl *BufferLine) HasWidth(index int) uint32 + func (bl *BufferLine) InsertCells(pos, n int, fillCell *CellData) + func (bl *BufferLine) IsCombined(index int) uint32 + func (bl *BufferLine) IsProtected(index int) uint32 + func (bl *BufferLine) LoadCell(index int, cell *CellData) *CellData + func (bl *BufferLine) ReplaceCells(start, end int, fillCell *CellData, respectProtect bool) + func (bl *BufferLine) Resize(cols int, fillCell *CellData) bool + func (bl *BufferLine) Set(index int, value CharData) + func (bl *BufferLine) SetCell(index int, cell *CellData) + func (bl *BufferLine) SetCellFromCodepoint(index int, codePoint uint32, width int, attrs *AttributeData) + func (bl *BufferLine) TranslateToString(trimRight bool, startCol, endCol int) string + type BufferOptions struct + Cols int + HasScrollback bool + Rows int + Scrollback int + TabStopWidth int + WindowsPtyMode bool + type BufferResizeEvent struct + Cols int + ColsChanged bool + Rows int + RowsChanged bool + type BufferService struct + Buffers *BufferSet + Cols int + IsUserScrolling bool + OnResizeEmitter EventEmitter[BufferResizeEvent] + OnScrollEmitter EventEmitter[int] + Rows int + func NewBufferService(opts *OptionsService) *BufferService + func (bs *BufferService) Buffer() *Buffer + func (bs *BufferService) Dispose() + func (bs *BufferService) Reset() + func (bs *BufferService) Resize(cols, rows int) + func (bs *BufferService) Scroll(eraseAttr *AttributeData, isWrapped bool) + func (bs *BufferService) ScrollLines(disp int, suppressScrollEvent bool) + type BufferSet struct + OnBufferActivateEmitter EventEmitter[BufferActivateEvent] + func NewBufferSet(cols, rows, scrollback, tabStopWidth int) *BufferSet + func (bs *BufferSet) ActivateAltBuffer(fillAttr *AttributeData) + func (bs *BufferSet) ActivateNormalBuffer() + func (bs *BufferSet) Active() *Buffer + func (bs *BufferSet) Alt() *Buffer + func (bs *BufferSet) Dispose() + func (bs *BufferSet) Normal() *Buffer + func (bs *BufferSet) Reset() + func (bs *BufferSet) Resize(newCols, newRows int) + func (bs *BufferSet) SetWindowsPtyMode(windowsPty bool) + func (bs *BufferSet) SetupTabStops(startCol int) + type CellData struct + CombinedData string + Content uint32 + func CellDataFromCharData(cd CharData) *CellData + func NewCellData() *CellData + func (c *CellData) AttributesEqual(other *CellData) bool + func (c *CellData) GetAsCharData() CharData + func (c *CellData) GetChars() string + func (c *CellData) GetCode() uint32 + func (c *CellData) GetWidth() int + func (c *CellData) IsCombined() uint32 + func (c *CellData) SetFromCharData(cd CharData) + type CharData [4]interface + func NewCharData(attr uint32, ch string, width int, code uint32) CharData + type Charset map[byte]rune + type CharsetService struct + Charset Charset + GLevel int + func NewCharsetService() *CharsetService + func (cs *CharsetService) Charsets() []Charset + func (cs *CharsetService) Reset() + func (cs *CharsetService) SetgCharset(g int, charset Charset) + func (cs *CharsetService) SetgLevel(g int) + type CircularList struct + OnDeleteEmitter EventEmitter[DeleteEvent] + OnInsertEmitter EventEmitter[InsertEvent] + OnTrimEmitter EventEmitter[int] + func NewCircularList[T any](maxLength int) *CircularList[T] + func (cl *CircularList[T]) Dispose() + func (cl *CircularList[T]) Get(index int) T + func (cl *CircularList[T]) IsFull() bool + func (cl *CircularList[T]) Length() int + func (cl *CircularList[T]) MaxLength() int + func (cl *CircularList[T]) Pop() T + func (cl *CircularList[T]) Push(value T) + func (cl *CircularList[T]) Recycle() T + func (cl *CircularList[T]) Set(index int, value T) + func (cl *CircularList[T]) SetLength(newLength int) + func (cl *CircularList[T]) SetMaxLength(newMaxLength int) + func (cl *CircularList[T]) ShiftElements(start, count, offset int) + func (cl *CircularList[T]) Splice(start, deleteCount int, items ...T) + func (cl *CircularList[T]) TrimStart(count int) + type Color struct + CSS string + RGBA uint32 + type ColorEvent struct + Color *ColorRGB + Index int + Type ColorRequestType + type ColorRGB [3]uint8 + func ToColorRGB(v uint32) ColorRGB + type ColorRequestType int + const ColorRequestReport + const ColorRequestRestore + const ColorRequestSet + type CoreMouseAction int + const MouseActionDown + const MouseActionLeft + const MouseActionMove + const MouseActionRight + const MouseActionUp + type CoreMouseButton int + const MouseButtonAux1 + const MouseButtonAux2 + const MouseButtonAux3 + const MouseButtonAux4 + const MouseButtonAux5 + const MouseButtonAux6 + const MouseButtonAux7 + const MouseButtonAux8 + const MouseButtonLeft + const MouseButtonMiddle + const MouseButtonNone + const MouseButtonRight + const MouseButtonWheel + type CoreMouseEncoding func(e *CoreMouseEvent) string + type CoreMouseEvent struct + Action CoreMouseAction + Alt bool + Button CoreMouseButton + Col int + Ctrl bool + Row int + Shift bool + X int + Y int + type CoreMouseEventType int + const MouseEventDown + const MouseEventDrag + const MouseEventMove + const MouseEventNone + const MouseEventUp + const MouseEventWheel + type CoreService struct + DecPrivateModes DecPrivateModes + IsCursorHidden bool + IsCursorInitialized bool + KittyKeyboard KittyKeyboardState + Modes Modes + OnBinaryEmitter EventEmitter[string] + OnDataEmitter EventEmitter[string] + OnRequestScrollToBottomEmitter EventEmitter[struct{}] + OnUserInputEmitter EventEmitter[struct{}] + func NewCoreService(opts *OptionsService) *CoreService + func (cs *CoreService) Dispose() + func (cs *CoreService) Reset() + func (cs *CoreService) TriggerBinaryEvent(data string) + func (cs *CoreService) TriggerDataEvent(data string, wasUserInput bool, shouldScroll bool) + type CsiFallbackHandler func(ident int, params *Params) + type CsiHandler func(params *Params) bool + type CursorInactiveStyle string + const CursorInactiveStyleBar + const CursorInactiveStyleBlock + const CursorInactiveStyleNone + const CursorInactiveStyleOutline + const CursorInactiveStyleUnderline + type CursorStyle string + const CursorStyleBar + const CursorStyleBlock + const CursorStyleUnderline + type DcsFallbackHandler func(ident int, action string, payload ...interface{}) + type DcsHandler interface + Hook func(params *Params) + Put func(data []uint32, start, end int) + Unhook func(success bool) bool + type DcsParser struct + func NewDcsParser() *DcsParser + func (p *DcsParser) ClearHandler(ident int) + func (p *DcsParser) Dispose() + func (p *DcsParser) Hook(ident int, params *Params) + func (p *DcsParser) Put(data []uint32, start, end int) + func (p *DcsParser) RegisterHandler(ident int, handler DcsHandler) Disposable + func (p *DcsParser) Reset() + func (p *DcsParser) SetHandlerFallback(handler DcsFallbackHandler) + func (p *DcsParser) Unhook(success bool) + type DcsStringHandler struct + func NewDcsStringHandler(handler func(data string, params *Params) bool) *DcsStringHandler + func (h *DcsStringHandler) Hook(params *Params) + func (h *DcsStringHandler) Put(data []uint32, start, end int) + func (h *DcsStringHandler) Unhook(success bool) bool + type DecPrivateModes struct + ApplicationCursorKeys bool + ApplicationKeypad bool + BracketedPasteMode bool + ColorSchemeUpdates bool + CursorBlink *bool + CursorBlinkOverride *bool + CursorStyle *CursorStyle + MouseEncoding string + MouseTrackingMode string + Origin bool + ReverseWraparound bool + SendFocus bool + SynchronizedOutput bool + Win32InputMode bool + Wraparound bool + type DeleteEvent struct + Amount int + Index int + type DirtyRowTracker struct + End int + Start int + func (d *DirtyRowTracker) ClearRange() + func (d *DirtyRowTracker) MarkAllDirty() + func (d *DirtyRowTracker) MarkDirty(y int) + func (d *DirtyRowTracker) MarkRangeDirty(y1, y2 int) + type Disposable interface + Dispose func() + func CombinedDisposable(disposables ...Disposable) Disposable + type DisposableStore struct + func (s *DisposableStore) Add(d Disposable) + func (s *DisposableStore) Clear() + func (s *DisposableStore) Dispose() + func (s *DisposableStore) IsDisposed() bool + type ErrorHandler func(state ParsingState) ParsingState + type EscFallbackHandler func(ident int) + type EscHandler func() bool + type EscapeSequenceParser struct + func NewEscapeSequenceParser() *EscapeSequenceParser + func NewEscapeSequenceParserWithTable(table *TransitionTable) *EscapeSequenceParser + func (p *EscapeSequenceParser) ClearApcHandler(id FunctionIdentifier) + func (p *EscapeSequenceParser) ClearCsiHandler(id FunctionIdentifier) + func (p *EscapeSequenceParser) ClearDcsHandler(id FunctionIdentifier) + func (p *EscapeSequenceParser) ClearErrorHandler() + func (p *EscapeSequenceParser) ClearEscHandler(id FunctionIdentifier) + func (p *EscapeSequenceParser) ClearExecuteHandler(code byte) + func (p *EscapeSequenceParser) ClearOscHandler(ident int) + func (p *EscapeSequenceParser) ClearPrintHandler() + func (p *EscapeSequenceParser) CurrentState() ParserState + func (p *EscapeSequenceParser) Dispose() + func (p *EscapeSequenceParser) Parse(data []uint32, length int) + func (p *EscapeSequenceParser) PrecedingJoinState() int + func (p *EscapeSequenceParser) RegisterApcHandler(id FunctionIdentifier, handler ApcHandler) Disposable + func (p *EscapeSequenceParser) RegisterCsiHandler(id FunctionIdentifier, handler CsiHandler) Disposable + func (p *EscapeSequenceParser) RegisterDcsHandler(id FunctionIdentifier, handler DcsHandler) Disposable + func (p *EscapeSequenceParser) RegisterEscHandler(id FunctionIdentifier, handler EscHandler) Disposable + func (p *EscapeSequenceParser) RegisterExecuteHandler(code byte, handler ExecuteHandler) Disposable + func (p *EscapeSequenceParser) RegisterOscHandler(ident int, handler OscHandler) Disposable + func (p *EscapeSequenceParser) Reset() + func (p *EscapeSequenceParser) SetApcHandlerFallback(handler ApcFallbackHandler) + func (p *EscapeSequenceParser) SetCsiHandlerFallback(handler CsiFallbackHandler) + func (p *EscapeSequenceParser) SetDcsHandlerFallback(handler DcsFallbackHandler) + func (p *EscapeSequenceParser) SetErrorHandler(handler ErrorHandler) + func (p *EscapeSequenceParser) SetEscHandlerFallback(handler EscFallbackHandler) + func (p *EscapeSequenceParser) SetExecuteHandlerFallback(handler ExecuteFallbackHandler) + func (p *EscapeSequenceParser) SetOscHandlerFallback(handler OscFallbackHandler) + func (p *EscapeSequenceParser) SetPrecedingJoinState(state int) + func (p *EscapeSequenceParser) SetPrintHandler(handler PrintHandler) + func (p *EscapeSequenceParser) SetPrintHandlerFallback(handler PrintFallbackHandler) + type EventEmitter struct + func (e *EventEmitter[T]) Dispose() + func (e *EventEmitter[T]) Event(listener func(T)) Disposable + func (e *EventEmitter[T]) Fire(value T) + func (e *EventEmitter[T]) HasListeners() bool + type ExecuteFallbackHandler func(code uint32) + type ExecuteHandler func() + type ExtendedAttrs struct + Payload any + func NewExtendedAttrs(ext uint32, urlID int) *ExtendedAttrs + func (e *ExtendedAttrs) Clone() *ExtendedAttrs + func (e *ExtendedAttrs) Ext() uint32 + func (e *ExtendedAttrs) IsEmpty() bool + func (e *ExtendedAttrs) SetExt(v uint32) + func (e *ExtendedAttrs) SetURLID(v int) + func (e *ExtendedAttrs) SetUnderlineColor(v uint32) + func (e *ExtendedAttrs) SetUnderlineStyle(v UnderlineStyle) + func (e *ExtendedAttrs) SetUnderlineVariantOffset(v int) + func (e *ExtendedAttrs) URLID() int + func (e *ExtendedAttrs) UnderlineColor() uint32 + func (e *ExtendedAttrs) UnderlineStyle() UnderlineStyle + func (e *ExtendedAttrs) UnderlineVariantOffset() int + type FontWeight string + const FontWeight100 + const FontWeight200 + const FontWeight300 + const FontWeight400 + const FontWeight500 + const FontWeight600 + const FontWeight700 + const FontWeight800 + const FontWeight900 + const FontWeightBold + const FontWeightNormal + type FunctionIdentifier struct + Final byte + Intermediates string + Prefix byte + type InputHandler struct + OnA11yCharEmitter EventEmitter[string] + OnA11yTabEmitter EventEmitter[int] + OnColorEmitter EventEmitter[[]ColorEvent] + OnCursorMoveEmitter EventEmitter[struct{}] + OnIconNameChangeEmitter EventEmitter[string] + OnLineFeedEmitter EventEmitter[struct{}] + OnRequestBellEmitter EventEmitter[struct{}] + OnRequestColorSchemeQueryEmitter EventEmitter[struct{}] + OnRequestRefreshRowsEmitter EventEmitter[RowRange] + OnRequestResetEmitter EventEmitter[struct{}] + OnRequestSendFocusEmitter EventEmitter[struct{}] + OnRequestSyncScrollBarEmitter EventEmitter[struct{}] + OnRequestWindowsOptionsReportEmitter EventEmitter[WindowsOptionsReportType] + OnTitleChangeEmitter EventEmitter[string] + func NewInputHandler(bufferService *BufferService, charsetService *CharsetService, ...) *InputHandler + func (h *InputHandler) Backspace() + func (h *InputHandler) Bell() + func (h *InputHandler) CarriageReturn() + func (h *InputHandler) Dispose() + func (h *InputHandler) FullReset() bool + func (h *InputHandler) Index() bool + func (h *InputHandler) KeypadApplicationMode() bool + func (h *InputHandler) KeypadNumericMode() bool + func (h *InputHandler) LineFeed() + func (h *InputHandler) NextLine() bool + func (h *InputHandler) Parse(data []byte) + func (h *InputHandler) ParseString(data string) + func (h *InputHandler) Parser() *EscapeSequenceParser + func (h *InputHandler) Print(data []uint32, start, end int) + func (h *InputHandler) Reset() + func (h *InputHandler) RestoreBgColor(_ string) bool + func (h *InputHandler) RestoreCursor() bool + func (h *InputHandler) RestoreCursorColor(_ string) bool + func (h *InputHandler) RestoreFgColor(_ string) bool + func (h *InputHandler) RestoreIndexedColor(data string) bool + func (h *InputHandler) ReverseIndex() bool + func (h *InputHandler) SaveCursor() bool + func (h *InputHandler) ScreenAlignmentPattern() bool + func (h *InputHandler) SelectCharset(collectAndFlag string) bool + func (h *InputHandler) SelectDefaultCharset() bool + func (h *InputHandler) SetHyperlink(data string) bool + func (h *InputHandler) SetOrReportBgColor(data string) bool + func (h *InputHandler) SetOrReportCursorColor(data string) bool + func (h *InputHandler) SetOrReportFgColor(data string) bool + func (h *InputHandler) SetOrReportIndexedColor(data string) bool + func (h *InputHandler) SetTitle(data string) bool + func (h *InputHandler) SetgLevel(level int) bool + func (h *InputHandler) ShiftIn() + func (h *InputHandler) ShiftOut() + func (h *InputHandler) Tab() + func (h *InputHandler) TabSet() bool + type InsertEvent struct + Amount int + Index int + type KittyKeyboardState struct + AltFlags int + AltStack []int + Flags int + MainFlags int + MainStack []int + type LogLevel string + const LogLevelDebug + const LogLevelError + const LogLevelInfo + const LogLevelOff + const LogLevelTrace + const LogLevelWarning + type Marker struct + IsDisposed bool + Line int + func NewMarker(line int) *Marker + func (m *Marker) Dispose() + func (m *Marker) ID() int64 + func (m *Marker) OnDispose(listener func(struct{})) Disposable + func (m *Marker) Register(d Disposable) Disposable + type Modes struct + InsertMode bool + type MouseStateService struct + OnProtocolChangeEmitter EventEmitter[CoreMouseEventType] + func NewMouseStateService() *MouseStateService + func (m *MouseStateService) ActiveEncoding() string + func (m *MouseStateService) ActiveProtocol() string + func (m *MouseStateService) AreMouseEventsActive() bool + func (m *MouseStateService) Dispose() + func (m *MouseStateService) Reset() + func (m *MouseStateService) SetActiveEncoding(name string) + func (m *MouseStateService) SetActiveProtocol(name string) + func (m *MouseStateService) TriggerMouseEvent(e CoreMouseEvent) (string, bool) + type MutableDisposable struct + func (m *MutableDisposable) Clear() + func (m *MutableDisposable) Dispose() + func (m *MutableDisposable) SetValue(d Disposable) + func (m *MutableDisposable) Value() Disposable + type NewLayoutResult struct + type Option func(*TerminalOptions) + func WithCols(cols int) Option + func WithMouseEventsRequireAlt(on bool) Option + func WithRows(rows int) Option + func WithScreenReaderMode(on bool) Option + func WithScrollback(n int) Option + func WithVtExtensions(ext VtExtensions) Option + func WithWindowOptions(wo WindowOptions) Option + func WithWindowsPty(wp WindowsPty) Option + type OptionsService struct + OnOptionChangeEmitter EventEmitter[string] + Options TerminalOptions + func NewOptionsService(opts *TerminalOptions) *OptionsService + func (s *OptionsService) Dispose() + func (s *OptionsService) OnMultipleOptionChange(keys []string, listener func()) Disposable + func (s *OptionsService) OnSpecificOptionChange(key string, listener func()) Disposable + func (s *OptionsService) SetOption(name string, value interface{}) + type OscFallbackHandler func(ident int, action string, payload ...interface{}) + type OscHandler interface + End func(success bool) bool + Put func(data []uint32, start, end int) + Start func() + type OscLinkData struct + ID string + URI string + type OscLinkService struct + func NewOscLinkService(bs *BufferService) *OscLinkService + func (s *OscLinkService) AddLineToLink(linkID, y int) + func (s *OscLinkService) GetLinkData(linkID int) *OscLinkData + func (s *OscLinkService) RegisterLink(data OscLinkData) int + type OscParser struct + func NewOscParser() *OscParser + func (p *OscParser) ClearHandler(ident int) + func (p *OscParser) Dispose() + func (p *OscParser) End(success bool) + func (p *OscParser) Put(data []uint32, start, end int) + func (p *OscParser) RegisterHandler(ident int, handler OscHandler) Disposable + func (p *OscParser) Reset() + func (p *OscParser) SetHandlerFallback(handler OscFallbackHandler) + func (p *OscParser) Start() + type OscState uint8 + const OscStateAbort + const OscStateID + const OscStatePayload + const OscStateStart + type OscStringHandler struct + func NewOscStringHandler(handler func(data string) bool) *OscStringHandler + func (h *OscStringHandler) End(success bool) bool + func (h *OscStringHandler) Put(data []uint32, start, end int) + func (h *OscStringHandler) Start() + type Params struct + Length int + MaxLength int + Params []int32 + func DefaultParams() *Params + func NewParams(maxLength, maxSubParamsLength int) *Params + func ParamsFromArray(values []interface{}) *Params + func (p *Params) AddDigit(value int32) + func (p *Params) AddParam(value int32) + func (p *Params) AddSubParam(value int32) + func (p *Params) Clone() *Params + func (p *Params) GetSubParams(idx int) []int32 + func (p *Params) GetSubParamsAll() map[int][]int32 + func (p *Params) HasSubParams(idx int) bool + func (p *Params) Reset() + func (p *Params) ResetZdm() + func (p *Params) ToArray() []interface{} + type ParserAction uint8 + const ParserActionAPCEnd + const ParserActionAPCPut + const ParserActionAPCStart + const ParserActionCSIDispatch + const ParserActionClear + const ParserActionCollect + const ParserActionDCSHook + const ParserActionDCSPut + const ParserActionDCSUnhook + const ParserActionESCDispatch + const ParserActionError + const ParserActionExecute + const ParserActionIgnore + const ParserActionOSCEnd + const ParserActionOSCPut + const ParserActionOSCStart + const ParserActionParam + const ParserActionPrint + type ParserState uint8 + const ParserStateAPCEntry + const ParserStateAPCIntermediate + const ParserStateAPCPassthrough + const ParserStateCSIEntry + const ParserStateCSIIgnore + const ParserStateCSIIntermediate + const ParserStateCSIParam + const ParserStateDCSEntry + const ParserStateDCSIgnore + const ParserStateDCSIntermediate + const ParserStateDCSParam + const ParserStateDCSPassthrough + const ParserStateEscape + const ParserStateEscapeIntermediate + const ParserStateGround + const ParserStateLength + const ParserStateOSCString + const ParserStateSOSPMString + type ParsingState struct + Abort bool + Code uint32 + Collect int + CurrentState ParserState + Params *Params + Position int + type PrintFallbackHandler = PrintHandler + type PrintHandler func(data []uint32, start, end int) + type RowRange struct + End int + Start int + type SavedCursorState struct + Charset Charset + Charsets []Charset + CurAttrData AttributeData + GLevel int + OriginMode bool + WraparoundMode bool + X int + Y int + type ScrollEvent struct + Position int + type ScrollbarOptions struct + ShowScrollbar bool + type SerializeAddon struct + func NewSerializeAddon(t *Terminal) *SerializeAddon + func (sa *SerializeAddon) Serialize(opts *SerializeOptions) []byte + type SerializeOptions struct + ExcludeAltBuffer bool + ExcludeModes bool + Range *SerializeRange + Scrollback *int + type SerializeRange struct + End int + Start int + type SpecialColorIndex int + const SpecialColorBackground + const SpecialColorCursor + const SpecialColorForeground + type Terminal struct + OnBellEmitter EventEmitter[struct{}] + OnCursorMoveEmitter EventEmitter[struct{}] + OnIconNameChangeEmitter EventEmitter[string] + OnLineFeedEmitter EventEmitter[struct{}] + OnRenderEmitter EventEmitter[RowRange] + OnRequestColorSchemeQueryEmitter EventEmitter[struct{}] + OnRequestSendFocusEmitter EventEmitter[struct{}] + OnRequestWindowsOptionsReportEmitter EventEmitter[WindowsOptionsReportType] + OnResizeEmitter EventEmitter[BufferResizeEvent] + OnScrollEmitter EventEmitter[int] + OnTitleChangeEmitter EventEmitter[string] + OnWriteParsedEmitter EventEmitter[struct{}] + func New(opts ...Option) *Terminal + func (t *Terminal) AddMarker(cursorYOffset int) *Marker + func (t *Terminal) AltBuffer() *Buffer + func (t *Terminal) Buffer() *Buffer + func (t *Terminal) Clear() + func (t *Terminal) Cols() int + func (t *Terminal) CurAttrData() AttributeData + func (t *Terminal) CursorX() int + func (t *Terminal) CursorY() int + func (t *Terminal) DecPrivateModes() DecPrivateModes + func (t *Terminal) Dispose() + func (t *Terminal) GetLine(y int) string + func (t *Terminal) IconName() string + func (t *Terminal) IsAltBufferActive() bool + func (t *Terminal) IsCursorHidden() bool + func (t *Terminal) Modes() Modes + func (t *Terminal) NormalBuffer() *Buffer + func (t *Terminal) OnA11yChar(fn func(string)) Disposable + func (t *Terminal) OnA11yTab(fn func(int)) Disposable + func (t *Terminal) OnBell(fn func()) Disposable + func (t *Terminal) OnBinary(fn func(string)) Disposable + func (t *Terminal) OnColor(fn func([]ColorEvent)) Disposable + func (t *Terminal) OnCursorMove(fn func()) Disposable + func (t *Terminal) OnData(fn func(string)) Disposable + func (t *Terminal) OnIconNameChange(fn func(string)) Disposable + func (t *Terminal) OnLineFeed(fn func()) Disposable + func (t *Terminal) OnRender(fn func(RowRange)) Disposable + func (t *Terminal) OnRequestColorSchemeQuery(fn func()) Disposable + func (t *Terminal) OnRequestSendFocus(fn func()) Disposable + func (t *Terminal) OnRequestWindowsOptionsReport(fn func(WindowsOptionsReportType)) Disposable + func (t *Terminal) OnResize(fn func(BufferResizeEvent)) Disposable + func (t *Terminal) OnScroll(fn func(int)) Disposable + func (t *Terminal) OnTitleChange(fn func(string)) Disposable + func (t *Terminal) OnWriteParsed(fn func()) Disposable + func (t *Terminal) RegisterApcHandler(id FunctionIdentifier, handler func(data string) bool) Disposable + func (t *Terminal) RegisterCsiHandler(id FunctionIdentifier, handler CsiHandler) Disposable + func (t *Terminal) RegisterDcsHandler(id FunctionIdentifier, handler DcsHandler) Disposable + func (t *Terminal) RegisterEscHandler(id FunctionIdentifier, handler EscHandler) Disposable + func (t *Terminal) RegisterMarker(cursorYOffset int) *Marker + func (t *Terminal) RegisterOscHandler(ident int, handler OscHandler) Disposable + func (t *Terminal) Reset() + func (t *Terminal) Resize(cols, rows int) + func (t *Terminal) Rows() int + func (t *Terminal) ScrollBottom() int + func (t *Terminal) ScrollLines(disp int) + func (t *Terminal) ScrollPages(pageCount int) + func (t *Terminal) ScrollToBottom() + func (t *Terminal) ScrollToLine(line int) + func (t *Terminal) ScrollToTop() + func (t *Terminal) ScrollTop() int + func (t *Terminal) Scrollback() int + func (t *Terminal) String() string + func (t *Terminal) TriggerMouseEvent(ev CoreMouseEvent) bool + func (t *Terminal) Write(p []byte) (n int, err error) + func (t *Terminal) WriteString(s string) + type TerminalOptions struct + AllowProposedApi bool + AllowTransparency bool + AltClickMovesCursor bool + BlinkIntervalDuration int + Cols int + ConvertEol bool + CursorBlink bool + CursorInactiveStyle CursorInactiveStyle + CursorStyle CursorStyle + CursorWidth int + DisableStdin bool + DrawBoldTextInBrightColors bool + FastScrollSensitivity float64 + FontFamily string + FontSize int + FontWeight FontWeight + FontWeightBold FontWeight + IgnoreBracketedPasteMode bool + LetterSpacing float64 + LineHeight float64 + LogLevel LogLevel + MacOptionClickForcesSelection bool + MacOptionIsMeta bool + MinimumContrastRatio float64 + MouseEventsRequireAlt bool + ReflowCursorLine bool + RescaleOverlappingGlyphs bool + RightClickSelectsWord bool + Rows int + ScreenReaderMode bool + ScrollOnEraseInDisplay bool + ScrollOnUserInput bool + ScrollSensitivity float64 + Scrollback int + Scrollbar ScrollbarOptions + ShowCursorImmediately bool + SmoothScrollDuration int + TabStopWidth int + TermName string + VtExtensions VtExtensions + WindowOptions WindowOptions + WindowsPty WindowsPty + WordSeparator string + func DefaultOptions() TerminalOptions + type TransitionTable struct + func NewTransitionTable(length int) *TransitionTable + func (t *TransitionTable) Add(code int, state ParserState, action ParserAction, next ParserState) + func (t *TransitionTable) AddMany(codes []int, state ParserState, action ParserAction, next ParserState) + func (t *TransitionTable) SetDefault(action ParserAction, next ParserState) + type UnderlineStyle uint32 + const UnderlineStyleCurly + const UnderlineStyleDashed + const UnderlineStyleDotted + const UnderlineStyleDouble + const UnderlineStyleNone + const UnderlineStyleSingle + type UnicodeService struct + func NewUnicodeService() *UnicodeService + func (u *UnicodeService) CharProperties(codepoint rune, preceding int) int + func (u *UnicodeService) GetStringCellWidth(s string) int + func (u *UnicodeService) Wcwidth(cp rune) int + type Utf8ToUtf32 struct + func (d *Utf8ToUtf32) Clear() + func (d *Utf8ToUtf32) Decode(input []byte, target []uint32) int + type VtExtensions struct + ColorSchemeQuery *bool + KittyKeyboard bool + KittySgrBoldFaintControl *bool + Win32InputMode bool + type WindowOptions struct + FullscreenWin bool + GetCellSizePixels bool + GetIconTitle bool + GetScreenSizeChars bool + GetScreenSizePixels bool + GetWinPosition bool + GetWinSizeChars bool + GetWinSizePixels bool + GetWinState bool + GetWinTitle bool + LowerWin bool + MaximizeWin bool + MinimizeWin bool + PopTitle bool + PushTitle bool + RaiseWin bool + RefreshWin bool + RestoreWin bool + SetWinLines bool + SetWinPosition bool + SetWinSizeChars bool + SetWinSizePixels bool + type WindowsOptionsReportType int + const GetCellSizePixels + const GetWinSizePixels + type WindowsPty struct + Backend string + BuildNo int