view

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package view is the package to control a view of gocui package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCursorPosition

func GetCursorPosition(g *gocui.Gui, v *gocui.View) (int, int, error)

GetCursorPosition return the real position of the cursor.

func MoveCursorBottom

func MoveCursorBottom(g *gocui.Gui, v *gocui.View) error

MoveCursorBottom move the cursor bottom.

func MoveCursorDown

func MoveCursorDown(g *gocui.Gui, v *gocui.View) error

MoveCursorDown move the cursor of view down.

func MoveCursorTop

func MoveCursorTop(g *gocui.Gui, v *gocui.View, dY int) error

MoveCursorTop move the cursor top.

func MoveCursorUp

func MoveCursorUp(g *gocui.Gui, v *gocui.View, dY int) error

MoveCursorUp move the cursor of view up.

func RefreshViewPeriodic

func RefreshViewPeriodic(g *gocui.Gui, v *gocui.View, duration time.Duration, f func() error)

RefreshViewPeriodic refresh table periodically.

Types

This section is empty.

Jump to

Keyboard shortcuts

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