Mon-Ouie / coolline

Simple readline-like tool able to change representation of input
Other
82 stars 14 forks source link

fix ansi-escaped word-movement (ctrl + left, ctrl + right) #23

Open arlimus opened 8 years ago

arlimus commented 8 years ago

Grab ANSI-based movement keys:

ctrl + left

results in

\e[1;5D

and

ctrl + right

results in

\e[1;5C

Extend the escape handler to chain these and then add both to the list of pre-defined handlers.

arlimus commented 8 years ago

This is an alternative implementation to https://github.com/Mon-Ouie/coolline/pull/22