3 type oscStringState struct {
7 func (oscState oscStringState) Handle(b byte) (s state, e error) {
8 logger.Infof("OscString::Handle %#x", b)
9 nextState, err := oscState.baseState.Handle(b)
10 if nextState != nil || err != nil {
15 case isOscStringTerminator(b):
16 return oscState.parser.ground, nil
22 // See below for OSC string terminators for linux
23 // http://man7.org/linux/man-pages/man4/console_codes.4.html
24 func isOscStringTerminator(b byte) bool {
26 if b == ANSI_BEL || b == 0x5C {