Installing quirk...

Thomas Wouters thomas at xs4all.net
Fri Jan 28 11:49:41 EST 2000


On Thu, Jan 27, 2000 at 09:53:57AM +0100, Per Soderstam wrote:

> I'm trying to build the Python1.5.2 release on a SPARC5 workstation
> running Solaris5 and i want another functionality for my pyhon promt
> (tsch type, with the up/down/left/right arrow positioning and command
> history as well as backspace instead of delete). Setting the SHELL
> (../tcsh) variable does not seem to work, but I'm no guru :). Do anyone
> understand my question? If so, do anyone have an answer?

If I understand your question properly, you want tcsh-style 'readline'
behaviour instead of bash-style ? Or do you mean you want readline behaviour
period, but you aren't getting any ? :)

If you're already using readline, and it's not what you want, I think you're
out of luck. As far as I know there is no drop-in replacement for readline
that makes it behave exactly like tcsh. On the other hand, you can probably
reconfigure readline's keybindings to behave _mostly_ like tcsh, and
providing your own completer function you can do most of tcsh's extremely
funky completion. But that last bit is probably a bit overkill for the
interactive interpreter.

The readline module still lacks good documentation, but you can learn the
most important bits from the readline(3) and the bash(1) manpage.

(If you're not using readline, that is, history/command-line editing don't
work, you need to recompile Python using readline, or compile it shared and
put it in your lib-dynload directory... See Modules/Setup in your python
source tree.)

tcsh-is-still-better-than-bash<wink>-ly y'rs
-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list