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
iirc this one will require a bit of re-wiring of the input system in general. Currently, in order to prevent a deadlock on shutdown, the input thread spinlocks while waiting for stdin to signal that enter is hit. If that wait is removed naively, the input thread will always be blocking on stdin, and it won't be possible for the event-processing thread to signal that the input thread should stop waiting for a clean shutdown.
It might be possible to get around this by buffering from stdin. Some investigation is warranted.
Otherwise, if someone else wants to look into it, that's fine, but any changes to the existing codebase will not persist unless work waits until at least after the v0.1 release, after which the majority of the codebase will have been converted.
There is a library called prompt_toolkit which is a pure-python implementation of gnu readline. However since it is pure-python it does have cross platform support. Several of the available features, are command suggestions and command history. Very easy to use library.
It might be helpful to add the ability to cycle through past commands with the up/down keys. May save a few keystrokes.
The text was updated successfully, but these errors were encountered: