Documentation ¶
Index ¶
- Constants
- type CommandBuffer
- type Config
- type ControlEvent
- type Event
- type InputHandler
- type InputReader
- type Layout
- type LayoutColumn
- type LayoutElement
- type LayoutRow
- type MouseEvent
- type Multiplexer
- func (m *Multiplexer) Cleanup()
- func (m *Multiplexer) DrawHorizLine(p state.Pos, dist int) error
- func (m *Multiplexer) DrawRightTee(p state.Pos) error
- func (m *Multiplexer) DrawVerticalLine(p state.Pos, dist int) error
- func (m *Multiplexer) HandleInput(ev Event) error
- func (m *Multiplexer) Init() error
- func (m *Multiplexer) InputData(r io.Reader) error
- func (m *Multiplexer) NewCommandBuffer() *CommandBuffer
- func (m *Multiplexer) Redraw() error
- func (m *Multiplexer) Run(cmd *exec.Cmd) error
- func (m *Multiplexer) RunShell() error
- type Operations
- type Term
- func (w *Term) DamageDone(r state.Rect, cr screen.CellReader) error
- func (w *Term) Draw()
- func (w *Term) MoveCursor(p state.Pos) error
- func (w *Term) Output(data []byte) error
- func (w *Term) Resize(rows, cols int)
- func (w *Term) ResizeMoved(rows, cols, rowsOffset, colsOffset int)
- func (w *Term) SetTermProp(attr state.TermAttr, val interface{}) error
- func (w *Term) Size() (int, int)
- func (w *Term) Start(rows, cols, roffset, coffset int) (io.Writer, error)
- func (w *Term) StringEvent(kind string, data []byte) error
- func (w *Term) Write(b []byte) (int, error)
- type TextEvent
Constants ¶
View Source
const ( Motion byte = 1 Down byte = 2 Up byte = 3 Shift byte = 0x1 Alt byte = 0x2 Ctrl byte = 0x4 )
View Source
const ( NUL = 0x0 DEL = 0x7f CAN = 0x18 SUB = 0x1a ESC = 0x1b BEL = 0x7 C0 = 0x20 )
View Source
const DefaultCommandBufferSize = 64 * 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandBuffer ¶
type CommandBuffer struct {
// contains filtered or unexported fields
}
func (*CommandBuffer) Flush ¶
func (cb *CommandBuffer) Flush() error
type ControlEvent ¶
type ControlEvent byte
type InputHandler ¶
type InputReader ¶
type InputReader struct {
// contains filtered or unexported fields
}
func NewInputReader ¶
func NewInputReader(r io.Reader, h InputHandler) (*InputReader, error)
func (*InputReader) Drive ¶
func (i *InputReader) Drive() error
type Layout ¶
type Layout struct { Operations Operations Rows, Columns int // contains filtered or unexported fields }
type LayoutColumn ¶
type LayoutColumn struct { LayoutElement Data []*LayoutRow }
type LayoutElement ¶
type LayoutRow ¶
type LayoutRow struct { LayoutElement // This is an or. A row has a term OR a set of columns Data []*LayoutColumn Term *Term }
type Multiplexer ¶
type Multiplexer struct { Config Config // contains filtered or unexported fields }
func (*Multiplexer) Cleanup ¶
func (m *Multiplexer) Cleanup()
func (*Multiplexer) DrawHorizLine ¶
func (m *Multiplexer) DrawHorizLine(p state.Pos, dist int) error
func (*Multiplexer) DrawRightTee ¶
func (m *Multiplexer) DrawRightTee(p state.Pos) error
func (*Multiplexer) DrawVerticalLine ¶
func (m *Multiplexer) DrawVerticalLine(p state.Pos, dist int) error
func (*Multiplexer) HandleInput ¶
func (m *Multiplexer) HandleInput(ev Event) error
func (*Multiplexer) Init ¶
func (m *Multiplexer) Init() error
func (*Multiplexer) NewCommandBuffer ¶
func (m *Multiplexer) NewCommandBuffer() *CommandBuffer
func (*Multiplexer) Redraw ¶
func (m *Multiplexer) Redraw() error
func (*Multiplexer) RunShell ¶
func (m *Multiplexer) RunShell() error
type Operations ¶
type Operations struct {
// contains filtered or unexported fields
}
func (*Operations) Split ¶
func (o *Operations) Split() error
func (*Operations) SplitHoriz ¶
func (o *Operations) SplitHoriz() error
type Term ¶
type Term struct {
// contains filtered or unexported fields
}
func (*Term) DamageDone ¶
func (*Term) Draw ¶
func (w *Term) Draw()
Draw is called to inform the widget to draw itself. A containing Term will generally call this during the application draw loop.
func (*Term) ResizeMoved ¶
Click to show internal directories.
Click to hide internal directories.