linenoise to use libtermkey for keyboard input

Hi there,

You might be interested in this branch I hacked up. It replaces the plain read()-based keyboard input handling with some based on my libtermkey[1]. Advantages here are many, but in brief: it understands UTF-8, modified arrow/cursor keys (e.g. Ctrl-Left), and the timing logic to detect CSI sequences vs. a plain Escape key. In my opinion it makes the keyboard handling a lot neater.

This branch just contains about and hour's quick hacking to see if it was possible, and it turns out it is. But I'd be happy to discuss the changes, and see if you'd be interested in accepting some or all of it.

Thanks,

[1]: http://www.leonerd.org.uk/code/libtermkey/