terminal

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTerminalSize added in v0.6.1

func GetTerminalSize() (height, width int, err error)

func ModifyPathForPty added in v0.6.1

func ModifyPathForPty(appName string)

Remove default global envs for an SDK.

func RunTerminal added in v0.6.5

func RunTerminal()

Types

type PtyTerminal

type PtyTerminal struct {
	Terminal term.Terminal
}

pty for Unix. conpty for Windows.

func NewPtyTerminal

func NewPtyTerminal() (p *PtyTerminal)

func (*PtyTerminal) AddEnv

func (p *PtyTerminal) AddEnv(key, value string)

func (*PtyTerminal) FindShellCommand added in v0.6.4

func (p *PtyTerminal) FindShellCommand() (command string)

func (*PtyTerminal) Run

func (p *PtyTerminal) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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