Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.

backspace prints ^H from idp console

Mingfei_M_Intel
Employee
1,598 Views

hi, from intel python console, when i try to delete using BACKSPACE, the console prints ^H

and i have to drop the whole command line with ctrl+C

how should i fix this?

0 Kudos
2 Replies
Robert_C_Intel
Employee
1,598 Views

Hi Mingfei,

I think your terminal is sending control H instead of DEL. You could check this by doing

cat > /dev/null

Hit enter, type a few keys, and then hit the backspace key. If you see ^H then that is your problem.

Intel Python does not include readline, because it is GPL, and readline may be mapping control H to delete a character. Here is a discussion of the problem and fixes: http://web.archive.org/web/20120621035133/http://www.ibb.net/~anne/keyboard/keyboard.html

Another option is to use a cpython with readline, and intel python packages for everything else. Here is how you do it : suggestion: https://software.intel.com/en-us/forums/intel-distribution-for-python/topic/704018

0 Kudos
Mingfei_M_Intel
Employee
1,598 Views

thanks, Robert,

you are right, my console is sending ^H for backspace and the remote is expecting ^?

i  followed this thread https://unix.stackexchange.com/questions/43103/backspace-tab-not-working-in-terminal-using-ssh

and the problem is solved.

thanks for helping.

Mingfei.

0 Kudos
Reply