Backspace=^H in docker container, how to resolve this issue?

Joined
Apr 16, 2023
Messages
57
Reaction score
7
Credits
525
My backspaces are being converted to ^H, arrow keys are also being converted to weird symbols, how do I resolve this issue?


Code:
# ^H^H^H^H^H^H^H^Hd^H^H^H^[[D^[[D^[[D^[[D^[[C^[[C^[[C^[[B^[[A^[[A^[[B
/bi: not found
 


osprey

Well-Known Member
Joined
Apr 15, 2022
Messages
687
Reaction score
571
Credits
6,407
You could try and reset the backspace key with:
Code:
stty erase <pressBackspaceKey>
or
Code:
stty erase <cntl+v> <pressBackspaceKey>
where <cntl+v> is pressing the cntl key and the letter v, and, <pressBackspaceKey> means to press the Backspace Key, and not print the string. Press enter of course at the end. It may or may not work but these things depend on terminal type. In xterm for example, one can configure some functions by holding down the cntl key and hitting the left mouse button and then clicking on some relevant config option if it's there.
 
Last edited:
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top