ui

package
v0.0.0-...-e21ce11 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyEnter     = '\n'
	KeyEscape    = 0x1B
	KeyBackspace = 0x08
	KeyDelete    = 0x7F

	KeyUp = 0xFFFF - iota
	KeyDown
	KeyLeft
	KeyRight

	KeyPageUp
	KeyPageDown
)

TODO: Delete these constanst and use key.Event.Code.

View Source
const (
	ColQ0 = -1
	ColQ1 = -2
)

Variables

View Source
var Events = make(chan Event)
View Source
var Quit = &struct{}{}

Functions

This section is empty.

Types

type Column

type Column interface {
	Updater
	NewWindow(Model) Updater
}

type Event

type Event interface{}

type KeyPress

type KeyPress struct {
	Key       rune
	Ctrl, Alt bool
}

TODO: Delete once not needed by vi.

type Message

type Message int
const (
	Delete Message
)

type Model

type Model interface{}

type UI

type UI interface {
	NewColumn(Model) Column
}

type Updater

type Updater interface {
	Update(Message)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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