ui

package
v0.0.0-...-161b0b8 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FeedIdx int

FeedIdx is the index of current feed

Functions

func StartCmdLine

func StartCmdLine(s *Screen, f *feed.Manager) bool

func StartEventLoop

func StartEventLoop(s *Screen, feedManager *feed.Manager, cfg backend.Config)

Types

type Layout

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

type Screen

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

func InitScreen

func InitScreen() *Screen

InitScreen initialize the screen

func (*Screen) DeinitScreen

func (s *Screen) DeinitScreen()

DeinitScreen close the screen

func (*Screen) GetCursor

func (s *Screen) GetCursor() (x, y int)

GetCursor returns the cursor position

func (*Screen) GetSize

func (s *Screen) GetSize() (x, y int)

func (*Screen) PollEvent

func (s *Screen) PollEvent() interface{}

func (*Screen) Redraw

func (s *Screen) Redraw(feedManager *feed.Manager)

Redraw prints all the user interface elements and contents

func (*Screen) SetCursor

func (s *Screen) SetCursor(x, y int)

SetCursor sets the cursor to a position

func (*Screen) SetLayout

func (s *Screen) SetLayout(l interface{})

func (*Screen) ShowCmdLine

func (s *Screen) ShowCmdLine()

Jump to

Keyboard shortcuts

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