ncdu

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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