escape: remove unnecessary type interpreterReturn

This commit is contained in:
Roi Martin 2016-04-27 23:13:54 +02:00
parent 40dec91023
commit 1b35b7cd26
1 changed files with 9 additions and 12 deletions

View File

@ -9,18 +9,6 @@ import (
"strconv" "strconv"
) )
type (
escapeState int
interpreterReturn int
)
const (
stateNone escapeState = iota
stateEscape
stateCSI
stateParams
)
type escapeInterpreter struct { type escapeInterpreter struct {
state escapeState state escapeState
curch rune curch rune
@ -29,6 +17,15 @@ type escapeInterpreter struct {
defaultFgColor, defaultBgColor Attribute defaultFgColor, defaultBgColor Attribute
} }
type escapeState int
const (
stateNone escapeState = iota
stateEscape
stateCSI
stateParams
)
var ( var (
errNotCSI = errors.New("Not a CSI escape sequence") errNotCSI = errors.New("Not a CSI escape sequence")
errCSINotANumber = errors.New("CSI escape sequence was expecting a number or a ;") errCSINotANumber = errors.New("CSI escape sequence was expecting a number or a ;")