mirror of https://github.com/chzyer/readline.git
Support arrows in Application mode
This commit is contained in:
parent
2972be24d4
commit
d0aa5c26c7
8
utils.go
8
utils.go
|
@ -175,6 +175,14 @@ func escapeKey(r rune, reader *bufio.Reader) rune {
|
||||||
case 'O':
|
case 'O':
|
||||||
d, _, _ := reader.ReadRune()
|
d, _, _ := reader.ReadRune()
|
||||||
switch d {
|
switch d {
|
||||||
|
case 'D':
|
||||||
|
r = CharBackward
|
||||||
|
case 'C':
|
||||||
|
r = CharForward
|
||||||
|
case 'A':
|
||||||
|
r = CharPrev
|
||||||
|
case 'B':
|
||||||
|
r = CharNext
|
||||||
case 'H':
|
case 'H':
|
||||||
r = CharLineStart
|
r = CharLineStart
|
||||||
case 'F':
|
case 'F':
|
||||||
|
|
Loading…
Reference in New Issue