shellview

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type History

type History struct {
	// contains filtered or unexported fields
}

func (*History) Append

func (h *History) Append(cmd string)

func (*History) Down

func (h *History) Down() string

func (*History) Reset

func (h *History) Reset()

func (*History) Up

func (h *History) Up() string

type ShellView

type ShellView struct {
	*tview.TextView

	IsActivated bool
	// contains filtered or unexported fields
}

func New

func New() *ShellView

func (*ShellView) CommandError

func (s *ShellView) CommandError(result string)

func (*ShellView) CommandResult

func (s *ShellView) CommandResult(result string)

func (*ShellView) Draw

func (s *ShellView) Draw(screen tcell.Screen)

func (*ShellView) GetCommand

func (s *ShellView) GetCommand() string

func (*ShellView) HistoryDown

func (s *ShellView) HistoryDown()

func (*ShellView) HistoryUp

func (s *ShellView) HistoryUp()

func (*ShellView) Input

func (s *ShellView) Input(r rune)

func (*ShellView) Remove

func (s *ShellView) Remove()

Jump to

Keyboard shortcuts

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