Versions in this module Expand all Collapse all v0 v0.1.0 Aug 21, 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 Cursor struct + BG lipgloss.Color + Col int + FG lipgloss.Color + Row int + Style StyleBits + type CursorBlinkMsg struct + type Emulator struct + ChatName string + OnCWDChange func(string) + OnCommandHistoryChanged func([]string) + SessionID string + func NewEmulator(sessionID, chatName, command string, args []string) *Emulator + func (e *Emulator) Blur() + func (e *Emulator) CWD() string + func (e *Emulator) Close() + func (e *Emulator) Focus() + func (e *Emulator) Listen() tea.Cmd + func (e *Emulator) Pty() *Pty + func (e *Emulator) SetCommandHistory(history []string) + func (e *Emulator) SetInitialCWD(dir 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() + 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) SetCWDCallback(fn func(string)) + type Pty struct + Errors chan error + Output chan []byte + 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) Write(data []byte) error + type PtyExitMsg struct + Err error + SessionID string + type PtyOutputMsg struct + Data []byte + SessionID string + type PtyReadyMsg struct + AlreadyRunning bool + SessionID string + type RenderTickMsg struct + SessionID string + type ResizeMsg struct + Height int + Width int + type Screen struct + Cells [][]Cell + Cols int + Cursor Cursor + CursorBlinkVisible bool + CursorVisible bool + Rows int + func NewScreen(rows, cols int) *Screen + func (s *Screen) Clear() + func (s *Screen) ClearLine() + func (s *Screen) ClearLineAll() + func (s *Screen) ClearLineLeft() + func (s *Screen) ClearSelection() + func (s *Screen) ClearWrapPending() + func (s *Screen) CursorBackward(n int) + 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) CursorUp(n int) + 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) ResetView() + func (s *Screen) Resize(rows, cols int) + func (s *Screen) RestoreCursor() + func (s *Screen) ReverseIndex() + 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) SetCursor(row, col int) + func (s *Screen) SetScrollRegion(top, bottom int) + func (s *Screen) SetScrollbackLimit(limit int) + func (s *Screen) SetSync(active bool) + func (s *Screen) StartSelection(row, col 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