terminal

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 5 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

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

type KittyTerminal added in v0.9.0

type KittyTerminal struct{}

KittyTerminal wraps the kitty functions.

func (*KittyTerminal) Name added in v0.9.0

func (t *KittyTerminal) Name() string

func (*KittyTerminal) OpenTab added in v0.9.0

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

type MacOSTerminal added in v0.11.0

type MacOSTerminal struct{}

MacOSTerminal wraps the macOS Terminal.app functions.

func (*MacOSTerminal) Name added in v0.11.0

func (t *MacOSTerminal) Name() string

func (*MacOSTerminal) OpenTab added in v0.11.0

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

type Terminal

type Terminal interface {
	Name() string
	OpenTab(workDir, command string) error
}

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

The command to run is built by the agent layer (see internal/agent), so the terminal only needs to launch an arbitrary shell command in a new tab.

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