tui

package
v0.0.0-...-c4d1fa4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ScreenWidth, ScreenHeight, _ = term.GetSize(int(os.Stdout.Fd()))

	BorderedScreenWidth, BorderScreenHeight = ScreenWidth - 2, ScreenHeight - 2

	FullWidthStyle = lipgloss.NewStyle().Width(BorderedScreenWidth).MaxWidth(BorderedScreenWidth)

	FocusedStyle = lipgloss.NewStyle().Foreground(focusedColor)

	DisabledStyle = lipgloss.NewStyle().Foreground(grayColor)

	CenterStyle = FullWidthStyle.Copy().Align(lipgloss.Center)

	RightStyle = FullWidthStyle.Copy().Align(lipgloss.Right)

	BorderStyle = lipgloss.NewStyle().
				BorderStyle(lipgloss.RoundedBorder()).
				BorderForeground(borderColor)

	OptBlockStyle = lipgloss.NewStyle().Width(20).MaxWidth(20).Padding(0, 3).Inline(true)

	EditorBlockStyle = lipgloss.NewStyle().Height(5)
)
View Source
var (
	Gap = "     "

	FocusedCursor = FocusedStyle.Render("[x]")

	NormalCursor = "[ ]"
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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