tui

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger() (*slog.Logger, *os.File, error)

NewLogger creates a new logger and returns it along with the file it writes to. The file should be closed when the logger is no longer needed.

Types

type Window

type Window struct {
	Height int
	Width  int
}

Window represents the dimensions of a terminal window.

func (*Window) Resize

func (w *Window) Resize(msg tea.WindowSizeMsg)

Resize updates the dimensions of the window.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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