1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-21 11:08:37 +00:00

Update vendor

This commit is contained in:
Darren Shepherd
2018-10-23 22:41:37 -07:00
parent 6a2c11f603
commit 426d985fea
5120 changed files with 951650 additions and 39452 deletions

View File

@@ -0,0 +1,31 @@
package ansiterm
type oscStringState struct {
baseState
}
func (oscState oscStringState) Handle(b byte) (s state, e error) {
oscState.parser.logf("OscString::Handle %#x", b)
nextState, err := oscState.baseState.Handle(b)
if nextState != nil || err != nil {
return nextState, err
}
switch {
case isOscStringTerminator(b):
return oscState.parser.ground, nil
}
return oscState, nil
}
// See below for OSC string terminators for linux
// http://man7.org/linux/man-pages/man4/console_codes.4.html
func isOscStringTerminator(b byte) bool {
if b == ANSI_BEL || b == 0x5C {
return true
}
return false
}