display

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close shut er down

func Draw

func Draw(w Window)

Draw display current state

func Init

func Init(c *config.Config)

Init start screen

func PollEvents

func PollEvents() tcell.Event

PollEvents get tcell events allows scr to not be exported

func Prompt

func Prompt(p string)

Prompt user

Types

type Command

type Command struct {
	Index  int
	Input  string
	Active bool
}

Command : cmd

type Window

type Window struct {
	Cmd     Command
	Parent  fs.Directory
	Current fs.Directory
	Child   fs.Directory
}

Window holds just a window

Jump to

Keyboard shortcuts

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