End me
This commit is contained in:
parent
f21a41982e
commit
43a664009c
@ -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
|
||||||
|
|||||||
249
ansi/decoder.go
249
ansi/decoder.go
@ -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
|
||||||