Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<back space> not functional in python and ipython in shell

Python version : Python 3.5.4 |Anaconda custom (64-bit).

Ipython version : IPython 4.2.0

Problem: Backspace key misbehaves. It brings the cursor forward a few spaces like the tab key...

I'm running bash version: GNU bash, version 4.4.12(1)-release (x86_64-unknown-linux-gnu)

on linux manjaro 17.0.6 Gallivera.

kernel 4.9.58.1-manjaro

I expect it's the Anaconda Python installation as the python 2.7 behaves normally.

This version of Anaconda and IPython I can't really update, because of competability issues with Emacs-python-mode so I don't know in what way I can test what is causing the problem.

like image 535
manandearth Avatar asked Dec 19 '17 18:12

manandearth


1 Answers

According to https://blog.csdn.net/qq_29695701/article/details/90715653

I added

export TERMINFO=/usr/share/terminfo

to my .bashrc file and it worked!

like image 65
jackie tom Avatar answered Oct 02 '22 16:10

jackie tom