fileviewer

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package fileviewer provides a widget to view a text file in a terminal via a pager program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Name       string
	GoToBottom bool
	Pager      string
}

type Widget

type Widget struct {
	gowid.IWidget
	// contains filtered or unexported fields
}

func New

func New(vfile string, cb gowid.IWidgetChangedCallback, opts ...Options) (*Widget, error)

New - a bit clumsy, UI will always be legit, but error represents terminal failure

Jump to

Keyboard shortcuts

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