Help us shape the future of Go! Take the 2026 Go Developer Survey

teaprogram

package
v0.19.1254 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package teaprogram is the single constructor every TUI should use, so terminal conventions like ctrl+z backgrounding apply everywhere instead of being reimplemented (or forgotten) per model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProgram

func NewProgram(model tea.Model, opts ...tea.ProgramOption) *tea.Program

NewProgram wraps tea.NewProgram with the CLI's shared conventions. Use this instead of calling tea.NewProgram directly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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