Versions in this module Expand all Collapse all v0 v0.1.0 Oct 4, 2026 Changes in this version + func DefaultShell() (string, []string) + func SendBytes(p *Pty, data []byte) tea.Cmd + type Cell struct + BG lipgloss.Color + Combining string + Continuation bool + FG lipgloss.Color + Rune rune + Style StyleBits + func (c Cell) Empty() bool + type ClipboardErrorMsg struct + Err error + type ClipboardTempPolicy struct + MaxBytes int64 + MaxFiles int + TTL time.Duration + func DefaultClipboardTempPolicy() ClipboardTempPolicy + type Cursor struct + BG lipgloss.Color + Col int + FG lipgloss.Color + Row int + Style StyleBits + type CursorBlinkMsg struct + type Emulator struct + func NewEmulator(sessionID, chatName, command string, args []string) *Emulator + func (e *Emulator) Blur() tea.Cmd + func (e *Emulator) CWD() string + func (e *Emulator) ChatName() string + func (e *Emulator) Close() error + func (e *Emulator) CommandHistorySnapshot() []string + func (e *Emulator) CurrentWorkingDirectory() (WorkingDirectory, bool) + func (e *Emulator) Focus() tea.Cmd + func (e *Emulator) Listen() tea.Cmd + func (e *Emulator) PasteFromClipboard() tea.Cmd + func (e *Emulator) PtyState() PtyState + func (e *Emulator) SessionID() string + func (e *Emulator) SetClipboardTempPolicy(policy ClipboardTempPolicy) error + func (e *Emulator) SetCommandHistory(history []string) + func (e *Emulator) SetInitialCWD(dir string) + func (e *Emulator) SetOnCWDChange(fn func(WorkingDirectory)) + func (e *Emulator) SetOnCommandHistoryChanged(fn func([]string)) + func (e *Emulator) SetOnError(fn func(error)) + func (e *Emulator) SetOnExit(fn func(PtyExitMsg)) + func (e *Emulator) SetOnTitleChange(fn func(string)) + func (e *Emulator) SetScrollbackLimit(limit int) + func (e *Emulator) SetStartEnv(env []string) + func (e *Emulator) Start() tea.Cmd + func (e *Emulator) StartEnv() []string + func (e *Emulator) StartSync(extraEnv []string) error + func (e *Emulator) StartWithEnv(extraEnv []string) tea.Cmd + func (e *Emulator) Stop() error + func (e *Emulator) Title() string + func (e *Emulator) Update(msg tea.Msg) tea.Cmd + func (e *Emulator) View(width, height int) string + type Parser struct + func NewParser(screen *Screen) *Parser + func (p *Parser) Feed(data []byte) + func (p *Parser) Reset() + func (p *Parser) SetCWDCallback(fn func(WorkingDirectory)) + func (p *Parser) SetResponseCallback(fn func([]byte)) + func (p *Parser) SetTitleCallback(fn func(string)) + type Pty struct + func Spawn(command string, args []string, env ...string) (*Pty, error) + func SpawnInDir(command string, args []string, dir string, env ...string) (*Pty, error) + func (p *Pty) Close() error + func (p *Pty) Listen(sessionID string) tea.Cmd + func (p *Pty) Resize(rows, cols int) error + func (p *Pty) State() PtyState + func (p *Pty) Write(data []byte) error + type PtyErrorMsg struct + Err error + type PtyExitMsg struct + Err error + ExitCode int + Generation uint64 + ProcessExited bool + SessionID string + Signal os.Signal + type PtyOutputMsg struct + Data []byte + Generation uint64 + SessionID string + type PtyReadyMsg struct + AlreadyRunning bool + Generation uint64 + ResizeErr error + SessionID string + type PtyState struct + Cols int + PID int + Rows int + Running bool + type PtyWarningMsg struct + Err error + Generation uint64 + SessionID string + type RenderTickMsg struct + SessionID string + type ResizeMsg struct + Height int + Width int + type Screen struct + func NewScreen(rows, cols int) *Screen + func (s *Screen) CellAt(row, col int) (Cell, bool) + func (s *Screen) CellsSnapshot() [][]Cell + func (s *Screen) Clear() + func (s *Screen) ClearLine() + func (s *Screen) ClearLineAll() + func (s *Screen) ClearLineLeft() + func (s *Screen) ClearScrollback() + func (s *Screen) ClearSelection() + func (s *Screen) ClearTabStop(mode int) + func (s *Screen) ClearToCursor() + func (s *Screen) ClearWrapPending() + func (s *Screen) Cols() int + func (s *Screen) CursorBackward(n int) + func (s *Screen) CursorBlinkVisible() bool + func (s *Screen) CursorDown(n int) + func (s *Screen) CursorForward(n int) + func (s *Screen) CursorNextLine(n int) + func (s *Screen) CursorPos() (row, col int) + func (s *Screen) CursorPrevLine(n int) + func (s *Screen) CursorState() Cursor + func (s *Screen) CursorUp(n int) + func (s *Screen) CursorVisible() bool + func (s *Screen) DeleteChars(n int) + func (s *Screen) DeleteLines(n int) + func (s *Screen) EnterAltScreen() + func (s *Screen) EraseChars(n int) + func (s *Screen) ExitAltScreen() + func (s *Screen) ExtendSelection(row, col int) + func (s *Screen) Index() + func (s *Screen) InsertChars(n int) + func (s *Screen) InsertLines(n int) + func (s *Screen) LineText(row int) string + func (s *Screen) NextLine() + func (s *Screen) Put(r rune) + func (s *Screen) PutBytes(data []byte) int + func (s *Screen) Render() string + func (s *Screen) RepeatPrevious(n int) + func (s *Screen) Reset() + func (s *Screen) ResetView() + func (s *Screen) Resize(rows, cols int) + func (s *Screen) ResizeChecked(rows, cols int) error + func (s *Screen) RestoreCursor() + func (s *Screen) ReverseIndex() + func (s *Screen) Rows() int + func (s *Screen) SaveCursor() + func (s *Screen) ScrollBottom() int + func (s *Screen) ScrollRegionDown(n int) + func (s *Screen) ScrollRegionUp(n int) + func (s *Screen) ScrollTop() int + func (s *Screen) ScrollUp() + func (s *Screen) ScrollViewDown(n int) + func (s *Screen) ScrollViewUp(n int) + func (s *Screen) SelectionText() []string + func (s *Screen) SetAutoWrap(active bool) + func (s *Screen) SetCursor(row, col int) + func (s *Screen) SetCursorAddress(row, col int) + func (s *Screen) SetCursorBlinkVisible(visible bool) + func (s *Screen) SetInsertMode(active bool) + func (s *Screen) SetOriginMode(active bool) + func (s *Screen) SetScrollRegion(top, bottom int) + func (s *Screen) SetScrollbackLimit(limit int) + func (s *Screen) SetSync(active bool) + func (s *Screen) SetTabStop() + func (s *Screen) SoftReset() + func (s *Screen) StartSelection(row, col int) + func (s *Screen) TabBackward(count int) + func (s *Screen) TabForward(count int) + func (s *Screen) ViewOffset() int + type StyleBits uint8 + const StyleBlink + const StyleBold + const StyleDim + const StyleHidden + const StyleItalic + const StyleReverse + const StyleStrikethrough + const StyleUnderline + type WorkingDirectory struct + Host string + Local bool + Path string