From 1b35b7cd26c49de99cb3f62d82de16e7ea2d4b6d Mon Sep 17 00:00:00 2001 From: Roi Martin Date: Wed, 27 Apr 2016 23:13:54 +0200 Subject: [PATCH] escape: remove unnecessary type interpreterReturn --- escape.go | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/escape.go b/escape.go index b3d6e2e..b18e3c0 100644 --- a/escape.go +++ b/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 ;")