Handle arrow keys when waiting for key press (#1956)

This commit is contained in:
Joe Lim authored and GitHub committed 2025-04-09 19:03:19 +10:00
1 parent 1878faa942
commit 841cc3da06
1 file changed
+1 -1
+1 -1
View File
@@ -1605,7 +1605,7 @@ func anyKey() {
}
defer term.Restore(int(os.Stdin.Fd()), oldState)
b := make([]byte, 1)
b := make([]byte, 8)
os.Stdin.Read(b)
}