terminal

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GhosttyTerminal

type GhosttyTerminal struct{}

GhosttyTerminal wraps the Ghostty functions.

func (*GhosttyTerminal) Name

func (t *GhosttyTerminal) Name() string

func (*GhosttyTerminal) OpenTab

func (t *GhosttyTerminal) OpenTab(workDir, command string) error

func (*GhosttyTerminal) OpenTabWithClaude

func (t *GhosttyTerminal) OpenTabWithClaude(workDir, initialPrompt, claudeBin, model string) error

func (*GhosttyTerminal) OpenTabWithResume

func (t *GhosttyTerminal) OpenTabWithResume(workDir, sessionID, claudeBin, model string) error

type ITermTerminal

type ITermTerminal struct{}

ITermTerminal wraps the iTerm functions.

func (*ITermTerminal) Name

func (t *ITermTerminal) Name() string

func (*ITermTerminal) OpenTab

func (t *ITermTerminal) OpenTab(workDir, command string) error

func (*ITermTerminal) OpenTabWithClaude

func (t *ITermTerminal) OpenTabWithClaude(workDir, initialPrompt, claudeBin, model string) error

func (*ITermTerminal) OpenTabWithResume

func (t *ITermTerminal) OpenTabWithResume(workDir, sessionID, claudeBin, model string) error

type Terminal

type Terminal interface {
	Name() string
	OpenTab(workDir, command string) error
	OpenTabWithResume(workDir, sessionID, claudeBin, model string) error
	OpenTabWithClaude(workDir, initialPrompt, claudeBin, model string) error
}

Terminal represents a terminal emulator that can open tabs/windows.

func NewTerminal

func NewTerminal(terminalType string) (Terminal, error)

NewTerminal creates a new terminal instance based on the terminal type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL