Codebase list golang-github-vbauerster-mpb / bc87ad9
const cuuAndEd Vladimir Bauer 5 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
22 import (
33 "bytes"
44 "errors"
5 "fmt"
65 "io"
76 "os"
87
1211 // NotATTY not a TeleTYpewriter error.
1312 var NotATTY = errors.New("not a terminal")
1413
15 var cuuAndEd = fmt.Sprintf("%c[%%dA%[1]c[J", 27)
14 const cuuAndEd = "\x1b[%dA\x1b[J"
1615
1716 // Writer is a buffered the writer that updates the terminal. The
1817 // contents of writer will be flushed when Flush is called.