Closed pkopriv2 closed 5 years ago
Same results for in terminator, and Ubuntu terminal
Default shell is bash - 4.4.19
Guake doesnt seem to have that issue
This issue is multiplatform - It is present on Arch, Gentoo, Fedora, openSUSE, Mint, and Ubuntu with KDE, Mate, Cinnamon, and Gnome installed using the pre-installed and configured Terminal programs for the reapective distributions. If you install guake on these same systems the issue isn't present on guake but it does exist in LXTerminal, Gnome Terminal, Konsole, Mate Terminal, xTerm, and Terminator on these platforms.
It sounds to me like it's prevalent enough that we should probably do something about it. I think we should definitely accept this issue and begin researching alternative implementations.
We have begun working on this issue. We ended up swapping out the readline implementation with https://github.com/c-bata/go-prompt. We also evaluated promptui - but it had no facilities for injecting auto completions. That being said, go-prompt's api is slightly lacking and does a poor job of defining consistent behavior on signal handling (ie ctrl-c does not exit the prompt but produces a new line). For the time being we're going to fork the implementation and amend it, with a plan to contribute the changes upstream.
SPIKE: Moving to database approach.
Circular buffer implemented with files.
File implementation is more efficient than database.
Get update from Manohar and Aadarsh.
Still working on it. Working out bugs.
Integrating with Tether now.
Done it, but sure it is done wrong.
Added to Trello.
Our current readline implementation is very spotty across environments. Many users are experiencing output similar to this:
We should evaluate other readline implementations or other "prompt" alternatives and estimate the work effort to replace.
AC: