console

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bold   = esc + "1m"
	Italic = esc + "3m"
	Clear  = esc + "2J" + esc + "f"
	Reset  = esc + "0m"

	Header1 = esc + "35m" + Bold // Light Magenta
	Header2 = esc + "33m"        // Yellow
	Domain  = esc + "36m"        // Cyan
	Comment = esc + "90m"        // Comment
	Code    = esc + "94m"        // Light Blue
	Result  = esc + "32m"        // Green
	Error   = esc + "31m"        // Red
	NewLine = esc + "90m" + "␤"  // Dark Gray
	Paired  = esc + "7m"         // Invert
)

Terminal codes

Variables

View Source
var GetScreenWidth = readline.GetScreenWidth

GetScreenWidth returns the screen width of the console

Functions

func Painter

func Painter() readline.Painter

Painter implements the Painter interface for readline

Types

This section is empty.

Jump to

Keyboard shortcuts

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