cursor-movement link
Vladimir Bauer
4 years ago
| 10 | 10 |
// ErrNotTTY not a TeleTYpewriter error.
|
| 11 | 11 |
var ErrNotTTY = errors.New("not a terminal")
|
| 12 | 12 |
|
| 13 | |
// http://ascii-table.com/ansi-escape-sequences.php
|
|
13 |
// https://github.com/dylanaraps/pure-sh-bible#cursor-movement
|
| 14 | 14 |
const (
|
| 15 | 15 |
escOpen = "\x1b["
|
| 16 | 16 |
cuuAndEd = "A\x1b[J"
|