Update moby/term to a released tag - v0.5.0
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
4
vendor/github.com/moby/term/windows/ansi_reader.go
generated
vendored
4
vendor/github.com/moby/term/windows/ansi_reader.go
generated
vendored
@@ -195,10 +195,10 @@ func keyToString(keyEvent *winterm.KEY_EVENT_RECORD, escapeSequence []byte) stri
|
||||
|
||||
// <Alt>+Key generates ESC N Key
|
||||
if !control && alt {
|
||||
return ansiterm.KEY_ESC_N + strings.ToLower(string(keyEvent.UnicodeChar))
|
||||
return ansiterm.KEY_ESC_N + strings.ToLower(string(rune(keyEvent.UnicodeChar)))
|
||||
}
|
||||
|
||||
return string(keyEvent.UnicodeChar)
|
||||
return string(rune(keyEvent.UnicodeChar))
|
||||
}
|
||||
|
||||
// formatVirtualKey converts a virtual key (e.g., up arrow) into the appropriate ANSI string.
|
||||
|
||||
Reference in New Issue
Block a user