tui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDialogModel

func NewDialogModel(dialog, main tea.Model, width, height int) dialogModel

func OverlayCenter

func OverlayCenter(width, height int, fg, bg string, opts ...OverlayOption) string

OverlayCenter places fg centered on top of bg within the given dimensions. Uses lipgloss's built-in cell-based compositor for ANSI-aware compositing.

func Run

func Run(api *pcloud.API) error

Run starts the TUI program and blocks until the user quits.

Types

type OverlayOption

type OverlayOption func(*overlayOptions)

OverlayOption configures overlay behavior.

func WithDim

func WithDim() OverlayOption

WithDim dims the background behind the overlay.

Directories

Path Synopsis
Package preview fetches a remote pCloud file and renders it for display in a terminal viewport.
Package preview fetches a remote pCloud file and renders it for display in a terminal viewport.

Jump to

Keyboard shortcuts

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