mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-05 20:48:28 +02:00
26 lines
606 B
Go
26 lines
606 B
Go
package terminal
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
var (
|
|
Stdout = NewAnsiStdout()
|
|
)
|
|
|
|
// Print prints given arguments with escape sequence conversion for windows.
|
|
func Print(a ...interface{}) (n int, err error) {
|
|
return fmt.Fprint(Stdout, a...)
|
|
}
|
|
|
|
// Printf prints a given format with escape sequence conversion for windows.
|
|
func Printf(format string, a ...interface{}) (n int, err error) {
|
|
return fmt.Fprintf(Stdout, format, a...)
|
|
}
|
|
|
|
// Println prints given arguments with newline and escape sequence conversion
|
|
// for windows.
|
|
func Println(a ...interface{}) (n int, err error) {
|
|
return fmt.Fprintln(Stdout, a...)
|
|
}
|