fxn / tkn

Terminal Keynote - A hack for terminal-based talks
MIT License
1.11k stars 84 forks source link

How to enable arrow keys? #7

Closed felippenardi closed 9 years ago

felippenardi commented 9 years ago

I know I must change the code on this line and that I must provide the ASCII escape character for the arrows.

I found this information:

up - "\027[A"
down - "\027[B"
left - "\027[D"
right - "\027[C"

Tried a to insert it in a few different ways on the code: \027[C, \027[C~, \e[C, \e[C~, ^[[C, ^[[C~, but none of them are working... what is the way to add an arrow key to this line?

felippenardi commented 9 years ago

@fxn Thank you!