code.InteractiveConsole in a newly created xterm

Simon Budig Simon.Budig at
Thu Jan 31 16:32:48 CET 2002

Michael Hudson <mwh at> wrote:
> Simon Budig <Simon.Budig at> writes:
>> However, I want to have this in a freshly created xterm window and I have
>> not been able to figure this out. I guess I somehow have to use
>> pseudo terminals and the xterm "-S" option. Something like (pseudocode):
> Probably.  You almost certainly need to write your own version of
> InteractiveConsole, or maybe just subclass it and override
> raw_input().

probably my main problem is, that I don't really understand how
PseudoTTY's and the xterm -S parameter work...

> PS: you might be able to get pyrepl working on an arbitrary file 
>     descriptor more easily:

Unfortunately this is not an option, since this thing should have
as weak dependencies as possible.

      Simon.Budig at

More information about the Python-list mailing list