screen

package
v0.0.0-...-a543747 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

README

screen

The screen draws the editor in the terminal.

Documentation

Overview

Package screen encapsulates all gott interaction with the display and user input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Screen

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

Screen draws the state of an editor.

func NewScreen

func NewScreen(e gott.Editor) *Screen

NewScreen creates a screen for use with a specified editor.

func (*Screen) Close

func (s *Screen) Close()

Close shuts down the display of a screen.

func (*Screen) GetNextEvent

func (s *Screen) GetNextEvent() *gott.Event

func (*Screen) Render

func (s *Screen) Render(e gott.Editor, c gott.Commander)

func (*Screen) SetCell

func (s *Screen) SetCell(j int, i int, c rune, color gott.Color)

func (*Screen) SetCellReversed

func (s *Screen) SetCellReversed(j int, i int, c rune, color gott.Color)

func (*Screen) SetCursor

func (s *Screen) SetCursor(position gott.Point)

Jump to

Keyboard shortcuts

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