Documentation
¶
Index ¶
- Variables
- type ExitFocusMsg
- type ExitMsg
- type OutputMsg
- type Pane
- func (p *Pane) ExitErr() error
- func (p *Pane) GetContent() string
- func (p *Pane) GetWorkdir() string
- func (p *Pane) HandleKey(msg tea.KeyMsg) tea.Msg
- func (p *Pane) HandleMouse(msg tea.MouseMsg)
- func (p *Pane) ID() string
- func (p *Pane) Running() bool
- func (p *Pane) SetSize(width, height int)
- func (p *Pane) SetWorkdir(dir string)
- func (p *Pane) Size() (width, height int)
- func (p *Pane) Start(command string, args ...string) tea.Cmd
- func (p *Pane) Stop() error
- func (p *Pane) StopGraceful(timeout time.Duration) error
- func (p *Pane) Update(msg tea.Msg) tea.Cmd
- func (p *Pane) View() string
- func (p *Pane) WriteInput(data []byte) (int, error)
- type RenderTickMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPaneNotRunning = fmt.Errorf("pane is not running")
Functions ¶
This section is empty.
Types ¶
type Pane ¶
type Pane struct {
// contains filtered or unexported fields
}
func (*Pane) GetContent ¶
GetContent returns the current terminal content as plain text for analysis.
func (*Pane) GetWorkdir ¶
func (*Pane) HandleMouse ¶
func (*Pane) SetWorkdir ¶
SetWorkdir sets the working directory for commands
func (*Pane) StopGraceful ¶
StopGraceful sends SIGTERM, waits for timeout, then SIGKILL if needed.
type RenderTickMsg ¶
type RenderTickMsg struct {
PaneID string
}
RenderTickMsg triggers a throttled render
Click to show internal directories.
Click to hide internal directories.