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)
      }

      Source Files

      Directories

      Path Synopsis