shell

package
v0.0.0-...-1b5e7ed Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyCtrlA     = 1
	KeyCtrlB     = 2
	KeyCtrlC     = 3
	KeyCtrlD     = 4
	KeyCtrlE     = 5
	KeyCtrlF     = 6
	KeyCtrlH     = 8
	KeyBackspace = 0x7F
	KeyTab       = 9
	KeyCtrlK     = 11
	KeyCtrlL     = 12
	KeyEnter     = 13
	KeyCtrlN     = 14
	KeyCtrlP     = 16
	KeyCtrlT     = 20
	KeyCtrlU     = 21
	KeyCtrlW     = 23
	KeyEsc       = 27
	KeyUp        = 65
	KeyDown      = 66
	KeyRight     = 67
	KeyLeft      = 68
	KeyB         = 98
	KeyF         = 102
	KeyAltB      = -1
	KeyAltF      = -2
	KeySuggest   = 1000
)
View Source
const TCGETS = syscall.TCGETS
View Source
const TCSETS = syscall.TCSETS

Variables

This section is empty.

Functions

This section is empty.

Types

type ParseType

type ParseType string
const (
	ParseTypeFull ParseType = "parse-full"
	ParseTypeRune ParseType = "parse-rune"
	ParseTypeSkip ParseType = "parse-skip"
)

type RenderType

type RenderType string
const (
	RenderTypeFull         RenderType = "full"
	RenderTypeFullTrim     RenderType = "full-trim"
	RenderTypePartial      RenderType = "partial"
	RenderTypePartialClear RenderType = "partial-clear"
	RenderTypeCursorOnly   RenderType = "cursor-only"
	RenderTypeSkip         RenderType = "skip"
)

type Shell

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

func NewShell

func NewShell(ctn di.Container) *Shell

func (*Shell) ReadRunes

func (s *Shell) ReadRunes(ctx context.Context) chan models.Rune

func (*Shell) Run

func (s *Shell) Run()

func (*Shell) SetColors

func (s *Shell) SetColors(colors map[parser.Object]terminal.Color)

Jump to

Keyboard shortcuts

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