Revert to version 70b2c90b260171e829f1ebd7c17f600c11858dbe of the vendored package github.com/Azure/go-ansiterm

This commit is contained in:
Lucas Käldström
2016-12-11 22:10:39 +02:00
parent d8c925319a
commit 0033a02c43
26 changed files with 695 additions and 331 deletions

View File

@@ -1,22 +1,22 @@
package ansiterm
type groundState struct {
baseState
type GroundState struct {
BaseState
}
func (gs groundState) Handle(b byte) (s state, e error) {
func (gs GroundState) Handle(b byte) (s State, e error) {
gs.parser.context.currentChar = b
nextState, err := gs.baseState.Handle(b)
nextState, err := gs.BaseState.Handle(b)
if nextState != nil || err != nil {
return nextState, err
}
switch {
case sliceContains(printables, b):
case sliceContains(Printables, b):
return gs, gs.parser.print()
case sliceContains(executors, b):
case sliceContains(Executors, b):
return gs, gs.parser.execute()
}