ncdu

package
v1.63.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 17 Imported by: 6

Documentation

Overview

Package ncdu implements a text based user interface for exploring a remote

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

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

UI contains the state of the user interface

func NewUI

func NewUI(f fs.Fs) *UI

NewUI creates a new user interface for ncdu on f

func (*UI) Box

func (u *UI) Box()

Box the u.boxText onto the screen

func (*UI) Draw

func (u *UI) Draw()

Draw the current screen

func (*UI) Line added in v1.61.0

func (u *UI) Line(x, y, xmax int, style tcell.Style, spacer rune, msg string)

Line prints a string to given xmax, with given space

func (*UI) LineOptions added in v1.61.0

func (u *UI) LineOptions(x, y, xmax int, style tcell.Style, options []string, selected int)

LineOptions Print line of selectable options

func (*UI) Linef added in v1.61.0

func (u *UI) Linef(x, y, xmax int, style tcell.Style, spacer rune, format string, args ...interface{})

Linef a string

func (*UI) Print added in v1.61.0

func (u *UI) Print(x, y int, style tcell.Style, msg string)

Print a string

func (*UI) Printf added in v1.61.0

func (u *UI) Printf(x, y int, style tcell.Style, format string, args ...interface{})

Printf a string

func (*UI) Run added in v1.63.0

func (u *UI) Run() error

Run shows the user interface

Directories

Path Synopsis
Package scan does concurrent scanning of an Fs building up a directory tree.
Package scan does concurrent scanning of an Fs building up a directory tree.

Jump to

Keyboard shortcuts

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