mirror of https://github.com/jroimartin/gocui.git
escape: remove unnecessary type interpreterReturn
This commit is contained in:
parent
40dec91023
commit
1b35b7cd26
21
escape.go
21
escape.go
|
@ -9,18 +9,6 @@ import (
|
|||
"strconv"
|
||||
)
|
||||
|
||||
type (
|
||||
escapeState int
|
||||
interpreterReturn int
|
||||
)
|
||||
|
||||
const (
|
||||
stateNone escapeState = iota
|
||||
stateEscape
|
||||
stateCSI
|
||||
stateParams
|
||||
)
|
||||
|
||||
type escapeInterpreter struct {
|
||||
state escapeState
|
||||
curch rune
|
||||
|
@ -29,6 +17,15 @@ type escapeInterpreter struct {
|
|||
defaultFgColor, defaultBgColor Attribute
|
||||
}
|
||||
|
||||
type escapeState int
|
||||
|
||||
const (
|
||||
stateNone escapeState = iota
|
||||
stateEscape
|
||||
stateCSI
|
||||
stateParams
|
||||
)
|
||||
|
||||
var (
|
||||
errNotCSI = errors.New("Not a CSI escape sequence")
|
||||
errCSINotANumber = errors.New("CSI escape sequence was expecting a number or a ;")
|
||||
|
|
Loading…
Reference in New Issue