pane

package
v0.0.0-...-af25313 Latest Latest
Warning

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

Go to latest
Published: May 1, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NEW_LINE        = 0xA
	TERMINAL_BELL   = 0x7
	BACKSPACE       = 0x8
	CARRIAGE_RETURN = 0xD
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CursorState

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

type Pane

type Pane struct {
	*exec.Cmd

	Prog string
	Args []string

	Pty *os.File

	ShouldRedraw chan struct{}
	// contains filtered or unexported fields
}

func CreatePane

func CreatePane(width, height int, prog string, args ...string) *Pane

func (*Pane) BackSpace

func (p *Pane) BackSpace()

func (*Pane) Cells

func (p *Pane) Cells() [][]termbox.Cell

func (*Pane) Clear

func (p *Pane) Clear()

func (*Pane) Close

func (p *Pane) Close() error

func (*Pane) Cursor

func (p *Pane) Cursor() (int, int)

func (*Pane) HandleKey

func (p *Pane) HandleKey(key byte)

func (*Pane) Height

func (p *Pane) Height() int

func (*Pane) NewLine

func (p *Pane) NewLine()

func (*Pane) Redraw

func (p *Pane) Redraw()

func (*Pane) Scroll

func (p *Pane) Scroll(far int)

func (*Pane) SetGraphicMode

func (p *Pane) SetGraphicMode(vals []int)

func (*Pane) Start

func (p *Pane) Start() error

func (*Pane) Width

func (p *Pane) Width() int

type Screen

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

func NewScreen

func NewScreen(width, height int) Screen

func (*Screen) AppendRows

func (s *Screen) AppendRows(n int)

func (*Screen) Cell

func (s *Screen) Cell(index, row int) *termbox.Cell

func (*Screen) Cells

func (s *Screen) Cells() [][]termbox.Cell

func (*Screen) DeleteRows

func (s *Screen) DeleteRows(start, count int)

func (*Screen) Row

func (s *Screen) Row(index int) *[]termbox.Cell

func (*Screen) Scroll

func (s *Screen) Scroll(offset int)

Scroll the screen offset number of lines Negative numbers scroll up Positive numbers scroll down

func (*Screen) SetScrollOffset

func (s *Screen) SetScrollOffset(offset int)

Jump to

Keyboard shortcuts

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