ncdu

package
v0.0.0-...-1dc401f Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 17 Imported by: 0

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

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

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

LineOptions Print line of selectable options

func (*UI) Linef

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

Linef a string

func (*UI) Print

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

Print a string

func (*UI) Printf

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

Printf a string

func (*UI) Run

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