handlers

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close end

func Init

func Init(c *config.Config, done chan bool)

Init the handlers

Types

type Command

type Command struct {
	Index  int
	Input  string
	Active bool
}

Command : holds command input

func (*Command) Add

func (c *Command) Add(r rune)

Add : add rune to command

func (*Command) Complete

func (c *Command) Complete(dt *fs.Tree, cd string)

Complete : command

func (*Command) Del

func (c *Command) Del()

Del : add rune to command

func (*Command) Reset

func (c *Command) Reset()

Reset : command

func (*Command) Run

func (c *Command) Run(dt *fs.Tree, cd string) string

Run : command

func (*Command) Set

func (c *Command) Set(input string)

Set : command

func (*Command) UpdateIndex

func (c *Command) UpdateIndex(dir int)

UpdateIndex : add rune to command

type HandlerReturn

type HandlerReturn struct {
	CD  string
	Cmd Command
}

HandlerReturn : at the end returns

func Keys

func Keys(ev *tcell.EventKey, dt *fs.Tree, cd string) HandlerReturn

Keys handler

Jump to

Keyboard shortcuts

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