tabs

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package tabs demonstrates pkg/tab as the layout primitive of a host screen. Three independent sub-screens — a filterable list, a streaming logview, and a counter — coexist behind a single-row tab strip. Each tab preserves its own state across switches: the logview keeps appending lines while the user is on the cities tab, the list keeps its cursor and filter, and the counter keeps its tally.

shift+left / shift+right and 1/2/3 switch tabs. tab/shift+tab is left alone (reserved for inner pane focus cycling, per the library convention). "/" only triggers the active body's filter or search; the tab strip suppresses its switch keys while the active body is capturing input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t theme.Theme) screen.Screen

New returns the tabs demo's root screen.

Types

This section is empty.

Jump to

Keyboard shortcuts

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