diff --git a/utils.go b/utils.go index af4e005..2cc2e3b 100644 --- a/utils.go +++ b/utils.go @@ -175,6 +175,14 @@ func escapeKey(r rune, reader *bufio.Reader) rune { case 'O': d, _, _ := reader.ReadRune() switch d { + case 'D': + r = CharBackward + case 'C': + r = CharForward + case 'A': + r = CharPrev + case 'B': + r = CharNext case 'H': r = CharLineStart case 'F':