[Tutor] Python2.0 question
Thu, 25 Jan 2001 23:09:55 +0100
Content-Type: text/plain; charset=us-ascii
Sez Scott Comboni:
> I just decided to check out Python 2.0 and all seems well but for one thi=
> When I execute the interpeter I cannot use my arrow keys to repeat a comm=
> Is there something simple I missed. I really like this command history=
> feature. Does anyone know how to turn it on?
> When I do hit the the arrow keys I just get garbage on the screen:
> Python 2.0 (#1, Jan 8 2001, 15:29:39)
> [GCC 2.95.3 19991030 (prerelease)] on linux2
> Type "copyright", "credits" or "license" for more information.
> >>> ^[[D^[[C^[[A^[[B=20
You are missing the readline module. How to get it back depends on the way
you installed python.
If you compiled from source, edit Modules/Setup and uncomment the line
readline readline.c -lreadline
(or something like that).
You will need readline headers and libraries installed. Your distribution
should have a readline-devel (or something) package.
If you installed from rpm, you'll need to find a better rpm or compile the
readline module yourself and copy it to /usr/lib/python2.0/lib-dynload.
Email: firstname.lastname@example.org | You can tune a filesystem, but you
Web: http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)
PGP fingerprint: 0C56 B171 8159 327F 1824 F5DE 74D7 80D7 BF3B B1DD
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----