output

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const ANSI_BLACK int = 30
View Source
const ANSI_BLUE int = 34
View Source
const ANSI_BLUE_L int = 94
View Source
const ANSI_GREEN int = 32
View Source
const ANSI_GREEN_L int = 92
View Source
const ANSI_RED int = 31
View Source
const ANSI_RED_L int = 91
View Source
const ANSI_WHITE int = 47
View Source
const ANSI_YELLOW int = 33
View Source
const ANSI_YELLOW_L int = 93
View Source
const ESCAPE_CODE string = "\x1B"
View Source
const FAIL_CHR string = "-"
View Source
const INFO_CHR string = "i"
View Source
const SUCCESS_CHR string = "+"
View Source
const SYS_CHR string = "*"
View Source
const WARNING_CHR string = "!"

Variables

View Source
var ANSI_RESET string = fmt.Sprintf("%s0m", CSI)

control sequence used to reset the output settings to the original values.

View Source
var BLUE_L_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_BLUE_L)
View Source
var BLUE_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_BLUE)
View Source
var CLEAR_LINE string = fmt.Sprintf("\r%s0K", CSI)

control sequence used to clear the entirty of the current line

View Source
var CLEAR_SCREEN string = fmt.Sprintf("%s0J%sH", CSI, CSI)

control sequence used to clear the entire screen and move the cursor to (0,0).

control sequence introducer shorthand (aka: "\x1B["")

View Source
var FAIL_SEQ string = fmt.Sprintf("%s[%s]%s", RED_L_SEQ, FAIL_CHR, ANSI_RESET)
View Source
var GREEN_L_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_GREEN_L)
View Source
var GREEN_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_GREEN)
View Source
var INFO_SEQ string = fmt.Sprintf("%s[%s]%s", BLUE_L_SEQ, INFO_CHR, ANSI_RESET)
View Source
var RED_L_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_RED_L)
View Source
var RED_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_RED)
View Source
var SUCCESS_SEQ string = fmt.Sprintf("%s[%s]%s", GREEN_L_SEQ, SUCCESS_CHR, ANSI_RESET)
View Source
var WARNING_SEQ string = fmt.Sprintf("%s[%s]%s", YELLOW_L_SEQ, WARNING_CHR, ANSI_RESET)
View Source
var YELLOW_L_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_YELLOW_L)
View Source
var YELLOW_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_YELLOW)

Functions

This section is empty.

Types

type Outputter

type Outputter struct{}

func NewOutputter

func NewOutputter() (obj *Outputter, err error)

function designed to create and return a new outputter object that can be used later on.

func (*Outputter) ErrMsg

func (o *Outputter) ErrMsg(message string)

func (*Outputter) InfMsg

func (o *Outputter) InfMsg(message string)

func (*Outputter) InfMsgNB

func (o *Outputter) InfMsgNB(message string)

func (*Outputter) SucMsg

func (o *Outputter) SucMsg(message string)

func (*Outputter) SysMsg

func (o *Outputter) SysMsg(message string)

func (*Outputter) SysMsgNB

func (o *Outputter) SysMsgNB(message string)

func (*Outputter) WrnMsg

func (o *Outputter) WrnMsg(message string)

Jump to

Keyboard shortcuts

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