diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-09 15:08:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 15:08:46 +0200 |
commit | 04270a080d4a06e671da9d2d7e6e15f6108338d9 (patch) | |
tree | 49116c6281fc4ab6cfac6bb5c9fb9600cdcd4573 /vendor/github.com/chzyer/readline/terminal.go | |
parent | 8a2ab7c387928782d8a1893c99974638054a0ad0 (diff) | |
parent | 8e1aa7af3a3d4fac1aefa94ed4a4455ac190ead9 (diff) | |
download | podman-04270a080d4a06e671da9d2d7e6e15f6108338d9.tar.gz podman-04270a080d4a06e671da9d2d7e6e15f6108338d9.tar.bz2 podman-04270a080d4a06e671da9d2d7e6e15f6108338d9.zip |
Merge pull request #15695 from Luap99/update-buildah
Update buildah and c/common to latest
Diffstat (limited to 'vendor/github.com/chzyer/readline/terminal.go')
-rw-r--r-- | vendor/github.com/chzyer/readline/terminal.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/chzyer/readline/terminal.go b/vendor/github.com/chzyer/readline/terminal.go index 1078631c1..38413d0cf 100644 --- a/vendor/github.com/chzyer/readline/terminal.go +++ b/vendor/github.com/chzyer/readline/terminal.go @@ -125,6 +125,7 @@ func (t *Terminal) ioloop() { var ( isEscape bool isEscapeEx bool + isEscapeSS3 bool expectNextChar bool ) @@ -152,9 +153,15 @@ func (t *Terminal) ioloop() { if isEscape { isEscape = false if r == CharEscapeEx { + // ^][ expectNextChar = true isEscapeEx = true continue + } else if r == CharO { + // ^]O + expectNextChar = true + isEscapeSS3 = true + continue } r = escapeKey(r, buf) } else if isEscapeEx { @@ -177,6 +184,15 @@ func (t *Terminal) ioloop() { expectNextChar = true continue } + } else if isEscapeSS3 { + isEscapeSS3 = false + if key := readEscKey(r, buf); key != nil { + r = escapeSS3Key(key) + } + if r == 0 { + expectNextChar = true + continue + } } expectNextChar = true |