term

package
v0.0.0-...-f6b9748 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStyle

func NewStyle(bg, fg tcell.Color) tcell.Style

Types

type TerminalContext

type TerminalContext struct {
	Screen       tcell.Screen
	DefaultStyle tcell.Style
}

func NewTerminalContext

func NewTerminalContext() TerminalContext

func (*TerminalContext) Center

func (tc *TerminalContext) Center() (int, int)

func (*TerminalContext) ClearScreen

func (tc *TerminalContext) ClearScreen()

func (*TerminalContext) DrawBox

func (tc *TerminalContext) DrawBox(x1, y1, w, h int, style tcell.Style)

func (*TerminalContext) DrawBoxWithCorneredText

func (tc *TerminalContext) DrawBoxWithCorneredText(x1, y1, w, h int, style tcell.Style, text string)

func (*TerminalContext) DrawText

func (tc *TerminalContext) DrawText(x1, y1 int, style tcell.Style, text string) error

func (*TerminalContext) Size

func (tc *TerminalContext) Size() (int, int)

Jump to

Keyboard shortcuts

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