-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readline support #28
Comments
Testing on Windows: the legacy ANSI support in chzyer/readline v1.5.1 actually produces a crash:
In my fork that replaces it with native Windows support using the technique from https://github.com/jwalton/go-supportscolor , there is no crash, but basic readline functionality (e.g. the up arrow) is broken. |
Leaning towards: readline support can be compiled into the binary by default, but pending additional work on a fork of the library, it will require an explicit command-line argument to enable. |
Even without using the readline library, the up arrow works with ircdog in Command Prompt and PowerShell?! It works even in this simple test case, although I can't find it documented anywhere: https://gist.github.com/slingamn/f19e8b7d8b1098d177fea15779fb9281 |
The library also has data races: chzyer/readline#214 that are nontrivial to remove. Every component talks to every component, so locking at the component level risks deadlock. Locking at the top level risks stalling the application (if the lock ends up being held during a blocking write operation of some sort). |
Status:
|
Actually resolved in #41! |
History: #12, #19
Status:
(*Instance).Close()
hangs if there is a concurrent(*Instance).ReadLine
call chzyer/readline#217The text was updated successfully, but these errors were encountered: