read
read copied to clipboard
Add completer option and forward as option to readline
Good idea, but needs a test.
I wrote a simple test for completion to readline. In the child, i react to a very simple completion event the master tap test just need to press the "tab" key. Very simple, very efficient.
And not working I spend 2 hours trying to understand & send the proper "whaterver key just send "tab" to the other side" key, with no success.
Feel free to take a look, i'm stuck here
// this is NOT sending TAB key to underlying child
write('\t');
//nor this
write('\x1b[I');
2 years later, i end up understanding that sending control chars (e.g. TAB) require a tty, not a pipe. Is it ok now ?
Hi isaacs ! I know how busy you are, maybe you don't want to touch this module anymore, do you prefer that I publish read myself (with another name) to access this feature ?
Thank you very much !
Rebased in https://github.com/npm/read/pull/51
YES ! Thanks.