Closed hymkor closed 5 years ago
On Windows, ReadRune() could not catch Ctrl-UP/DOWN/RIGHT/LEFT, but on Linux it can.
With this patch, ReadRune() on Windows can catch them as below.
^[[1;5A
^[[1;5B
^[[1;5D
^[[1;5C
Would you merge my patch if there is no problem ?
(I fixed _example/simple.go because under cooked-mode, Ctrl-DOWN and Ctrl-UP work to scroll the console-window )
Thank you. I'll look in later.
Thank you! I appended these 5 keys.
^[[1;5H
^[[1;5F
^[[5;5~
^[[6;5~
^[[3;5~
LGTM, Thank you
On Windows, ReadRune() could not catch Ctrl-UP/DOWN/RIGHT/LEFT, but on Linux it can.
With this patch, ReadRune() on Windows can catch them as below.
^[[1;5A
^[[1;5B
^[[1;5D
^[[1;5C
Would you merge my patch if there is no problem ?
(I fixed _example/simple.go because under cooked-mode, Ctrl-DOWN and Ctrl-UP work to scroll the console-window )