This commit is contained in:
Sasha Koshka 2023-04-07 23:03:42 -04:00
parent f21a41982e
commit 43a664009c
2 changed files with 227 additions and 25 deletions

View File

@ -1,10 +1,9 @@
package ansi package ansi
// CSI represents a list of CSI sequences that have no parameters. // CSI represents a list of CSI sequences that have no parameters.
// FIXME: some of these do indeed have parameters
type CSI int; const ( type CSI int; const (
CSI_AuxPortOn CSI = iota CSI_DeviceStatusReport CSI = iota
CSI_AuxPortOff
CSI_DeviceStatusReport
CSI_SaveCursorPosition CSI_SaveCursorPosition
CSI_RestoreCursorPosition CSI_RestoreCursorPosition
CSI_ShowCursor CSI_ShowCursor

View File

@ -1,5 +1,7 @@
package ansi package ansi
import "strconv"
import "strings"
import "image/color" import "image/color"
// Useful: https://en.wikipedia.org/wiki/ANSI_escape_code // Useful: https://en.wikipedia.org/wiki/ANSI_escape_code