Sane keyboard input not working in GDB when using the fbt tool
Describe the bug.
When using ./fbt blackmagic, a gdb interface appears. However, pressing backspace graphically adds a space to the prompt (as long as there is text to erase). Functionnally the text is erased but not graphically.
Similar behavior arises as soon as the text is changed in any way such as pressing the left arrow and typing something as illustrated below.

Reproduction
cdto the directory of the firmware- Turn on
gdb - Type abcd
- Press Left
- Press backspace
- Hopefully abd will remain
- Exit gdb
- Execute
./fbt blackmagic - Type abcd
- Press Left
- Press backspace
- The result is abcdd (with a space at the end)
Target
No response
Logs
No response
Anything else?
The system is Arch Linux with KDE. The Terminal emulator is Konsole but the problem persists in the virtual console and in XTerm. The shell is ZSH but the problem persists in SH and BASH.
I was advised to add "TERM" to the environment variables at line 15 of environ.scons but this did not help.
EDIT: The problem comes from the binary arm-none-eabi-gdb in the toolchain folder. The system version works fine. The shipped version has this problem.
@drunkbatya we might need your help with that one.
OK, in case it helps, it appears to be basically an issue with ncurses. If I remove the ncurses library from the path that the scripts append, it works fine with the system ncurses.
@Semptum we've pushed couple updates, is your issue still there?
@Semptum we've pushed couple updates, is your issue still there?
Yup, just checked, the problem persists on the latest dev even though it pulled in newer versions of the tools
@Semptum we've pushed couple updates, is your issue still there?
Yup, just checked, the problem persists on the latest dev even though it pulled in newer versions of the tools. If I remember correctly, the problem is with ncurses, using the system library it works fine
@hedger @drunkbatya your turn ;)
@Semptum we've pushed couple toolchain updates, do you still have this issue?
@Semptum we've pushed couple toolchain updates, do you still have this issue?
Yup, still there...
@Semptum we've pushed couple toolchain updates, do you still have this issue?
Yup, still there...
Ok, I'll look at this soon
@drunkbatya any updates?
@drunkbatya any updates?
Not yet, I'll look at this today.
@Semptum Hey! I found a core of the problem, it was a missing libtinfo ncurses compiling dependency. I'm released the new toolchain with this fix. Can you test it?
git pull
git checkout drunkbatya/23-toolchain
./fbt blackmagic