You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorry for not answering earlier, I didn't have much time to work on this library.
So currently the input source is indeed bound to os.Stdin, because the shell also has to monitor for various cursor/terminal escape codes that happen to go through it.
In many cases those escape codes sent back to us by the terminal are mixed along any user-typed keys that would happen to be typed at the same time, and that is why the "key management engine" of this library only uses os.Stdin (it simplifies the code to some extent).
I'm not against giving the option to use another input stream, and it might indeed not be that difficult to implement while preserving the capabilities of this readline library, but I would need some specific example.
Could you provide one ? Maybe some code snippets along with it ?
Thanks
For (rl *Shell) Readline(), the input is from os.StdIn, does it support the user-specified io stream as the command input source
The text was updated successfully, but these errors were encountered: