terminal

package module
Version: v0.0.0-...-717e76f Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: BSD-3-Clause Imports: 7 Imported by: 8

README

terminal

golang terminal helper functions

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BoxPromptTemplate = `` /* 303-byte string literal not displayed */
View Source
var DeltaTemplate = `
{{ ansi "fgwhite"}}△{{ ansi ""}}{{.}}
`
View Source
var ErrorLineTemplate = `
{{ ansi "fgred"}}☠{{ ansi ""}}{{.}}
`
View Source
var ErrorMessageTemplate = `` /* 298-byte string literal not displayed */
View Source
var HRTemplate = `
{{ ansi "fgcyan"}}{{.}}{{ ansi ""}}
`
View Source
var InformationTemplate = `
{{ ansi "fgcyan"}}✓{{ ansi ""}}{{.}}
`
View Source
var NoticeTemplate = `
{{ ansi "fgmagenta"}}▶{{ ansi ""}}{{.}}
`
View Source
var PromptTemplate = `
{{ ansi "fgwhite"}}◀{{ ansi ""}}{{.}}
`
View Source
var ResponseTemplate = `
{{ ansi "fgwhite"}}▶{{ ansi ""}}{{.}}
`

Functions

func AnsiCode

func AnsiCode(code string) string

AnsiCode outputs the ansi codes for changing terminal colors and behaviors.

func BoxPromptBool

func BoxPromptBool(title string, message string) bool

Input Prompt Bool

func BoxPromptString

func BoxPromptString(title string, message string) string

Input Prompt String

func Delta

func Delta(message string)

func ErrorLine

func ErrorLine(message string)

func HR

func HR()

func Information

func Information(message string)

func Notice

func Notice(message string)

func PrintAnsi

func PrintAnsi(templ string, data interface{})

func Prompt

func Prompt(message string)

func PromptBool

func PromptBool(message string) bool

func PromptInt

func PromptInt(message string, max int) int

func PromptPassword

func PromptPassword(message string) string

func PromptString

func PromptString(message string) string

func Response

func Response(message string)

func ShowErrorMessage

func ShowErrorMessage(title string, message string)

Error Message

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL