mirror of
https://github.com/containers/podman.git
synced 2025-12-09 15:19:35 +08:00
Update github.com/moby/term digest to 0564e01
Signed-off-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
5
vendor/github.com/moby/term/windows/ansi_reader.go
generated
vendored
5
vendor/github.com/moby/term/windows/ansi_reader.go
generated
vendored
@@ -9,6 +9,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
"unsafe"
|
||||
|
||||
@@ -195,10 +196,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(strconv.Itoa(int(keyEvent.UnicodeChar)))
|
||||
}
|
||||
|
||||
return string(keyEvent.UnicodeChar)
|
||||
return strconv.Itoa(int(keyEvent.UnicodeChar))
|
||||
}
|
||||
|
||||
// formatVirtualKey converts a virtual key (e.g., up arrow) into the appropriate ANSI string.
|
||||
|
||||
Reference in New Issue
Block a user