Skip to content
Myr

Handle arrows on Powershell on Unix-like systems

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 4d14af7 · Browse files · 1 file+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:key.go+7 added-1 removed
251 unmodified lines
252 "1b7f": {Type: KeyDelete, Alt: true},253 "1b5b48": {Type: KeyHome},254 "1b5b377e": {Type: KeyHome}, // urxvt255 "1b5b313b3348": {Type: KeyHome, Alt: true},256 "1b1b5b377e": {Type: KeyHome, Alt: true}, // ursvt256 "1b1b5b377e": {Type: KeyHome, Alt: true}, // urxvt257 "1b5b46": {Type: KeyEnd},258 "1b5b387e": {Type: KeyEnd}, // urxvt259 "1b5b313b3346": {Type: KeyEnd, Alt: true},260 "1b1b5b387e": {Type: KeyEnd, Alt: true}, // urxvt
6 unmodified lines
267 "1b5b313b3341": {Type: KeyUp, Alt: true},268 "1b5b313b3342": {Type: KeyDown, Alt: true},269 "1b5b313b3343": {Type: KeyRight, Alt: true},270 "1b5b313b3344": {Type: KeyLeft, Alt: true},271272 // Powershell273 "1b4f41": {Type: KeyUp, Alt: false},274 "1b4f42": {Type: KeyDown, Alt: false},275 "1b4f43": {Type: KeyRight, Alt: false},276 "1b4f44": {Type: KeyLeft, Alt: false},277}278279// readInput reads keypress and mouse input from a TTY and returns a message280// containing information about the key or mouse event accordingly.
54 unmodified lines