git-bug
git-bug copied to clipboard
Support arrow key movement when adding bridges interatively
When adding a bridge interactively (using git bug bridge configure
), using keyboard arrows add odd characters (^[[D for left arrow) instead of moving in the string.
For exemple using left arrow in base url:
Gitlab base url:
[0]: https://gitlab.com
[1]: enter your own base url
Select option: 1
Base url: https://git.unsi^[[D
The terminal used is Yakuake (based on KDE Konsole).
Doing that seems to require some complex shenanigan like switching the terminal into raw mode (see https://stackoverflow.com/questions/30689640/cursor-key-terminal-input-in-go). It might even need OS specific code and tricky code to support unicode properly.