Disable readline

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu Dec 1 01:42:19 EST 2011


On Thu, 01 Dec 2011 00:00:52 -0500, Roy Smith wrote:

> Another possibility is setting your TERM environment variable to
> something that readline can't support:
> 
> ~$ TERM=asr33
> ~$ python
> Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc.
> build 5646)] on darwin Type "help", "copyright", "credits" or "license"
> for more information. Cannot read termcap database;
> using dumb terminal settings.
> Cannot read termcap database;
> using dumb terminal settings.
> Cannot read termcap database;
> using dumb terminal settings.


Damn, my python is smarter than your python.

steve at runes:~$ TERM=asr33
steve at runes:~$ python
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

And readline continues to work :/


I think I'll install from source a build with readline disabled.


> BTW, readline is the coolest, awesomist, most frabjulously gnarly thing
> to be invented since the pointed stick.  The idea that somebody would
> want to turn it off (even for testing) disturbs me deeply.

I know! I don't use more than about 1% of what readline offers, but I 
can't imagine not using it.



-- 
Steven



More information about the Python-list mailing list