[MacPorts] #45301: spacebar not recognized in python macport version
MacPorts
noreply at macports.org
Fri Oct 17 14:40:13 PDT 2014
#45301: spacebar not recognized in python macport version
------------------------------------+--------------------------------
Reporter: manzotti.alessandro@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Resolution: | Keywords:
Port: |
------------------------------------+--------------------------------
Comment (by nad@…):
Have you checked whether you define a `PYTHONSTARTUP` environment variable
that has editline specific commands in it? Try `python -E` to ignore env
variables and see if that works. Also check what terminal def is in use:
`echo $TERM`.
For what it's worth, it is possible to write a python startup file
(pointed to by `PYTHONSTARTUP`) that will work with Python 2.7.x or 3.x
and with Pythons using either `libedit` or GNU `readline`. For example:
{{{
from pprint import pprint as pp
try:
import readline
import rlcompleter
if 'libedit' in readline.__doc__:
readline.parse_and_bind("bind ^I rl_complete")
else:
readline.parse_and_bind("tab: complete")
except ImportError:
pass
}}}
--
Ticket URL: <https://trac.macports.org/ticket/45301#comment:7>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list