tui

package
v0.0.0-...-2d58911 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LiveRenderer

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

LiveRenderer renders a cross-platform, adaptive, colorful progress table. - Uses ANSI when available; plain text fallback otherwise. - Adapts to terminal width/height. - Shows job header + totals + active file rows with progress bars.

func NewLiveRenderer

func NewLiveRenderer(job hfdownloader.Job, cfg hfdownloader.Settings) *LiveRenderer

NewLiveRenderer creates a new live TUI renderer.

func (*LiveRenderer) Close

func (lr *LiveRenderer) Close()

Close stops the renderer and restores the terminal.

func (*LiveRenderer) Handler

func (lr *LiveRenderer) Handler() hfdownloader.ProgressFunc

Handler returns a ProgressFunc that feeds events to the renderer.

Jump to

Keyboard shortcuts

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