pane

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPane

func NewPane(renderer ecma48.Renderer, realShell bool, sessionID string) wm.Node

Types

type Pane

type Pane struct {
	Dead    bool
	OnDeath func(error)
	// contains filtered or unexported fields
}

A Pane is a tiling unit representing a terminal

func (*Pane) GetRenderRect

func (t *Pane) GetRenderRect() wm.Rect

func (*Pane) HandleStdin

func (t *Pane) HandleStdin(in ecma48.Output)

func (*Pane) IsDead

func (t *Pane) IsDead() bool

func (*Pane) Kill

func (t *Pane) Kill()

func (*Pane) ScrollDown

func (t *Pane) ScrollDown()

func (*Pane) ScrollUp

func (t *Pane) ScrollUp()

func (*Pane) Serialize

func (t *Pane) Serialize() string

func (*Pane) SetDeathHandler

func (t *Pane) SetDeathHandler(onDeath func(error))

func (*Pane) SetPaused

func (t *Pane) SetPaused(pause bool)

func (*Pane) SetRenderRect

func (t *Pane) SetRenderRect(fullscreen bool, x, y, w, h int)

func (*Pane) ToggleSearch

func (t *Pane) ToggleSearch()

func (*Pane) UpdateSelection

func (t *Pane) UpdateSelection(selected bool)

type SearchDirection

type SearchDirection int

SearchDirection is which direction we move through search results

const (
	SearchUp SearchDirection = iota
	SearchDown
)

enum of search directions

type SearchMatch

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

SearchMatch coordinates are relative to bottom left. 1st coords are upper left and 2nd coords are bottom right of search match

Jump to

Keyboard shortcuts

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