terminal

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

type TmuxTerminal added in v0.13.0

type TmuxTerminal struct{}

TmuxTerminal opens each session as a new window in the current tmux session.

func (*TmuxTerminal) Name added in v0.13.0

func (t *TmuxTerminal) Name() string

func (*TmuxTerminal) OpenTab added in v0.13.0

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

Jump to

Keyboard shortcuts

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