daemon: improve tty interface
Problem
The CLI interface is based on reading stdin lines, not a TTY, so it doesn't support text cursor, tab completion or multiline commands.
Expected outcome
Basically it should behave like a Lua interpreter, but integrated in libuv loop. There is already TTY code in libuv, and Lua interpreters around so we might want to reuse something.
-
Real TTY, support for arrows -
Basic introspection -
Tab completion