code.InteractiveConsole in a newly created xterm
Simon Budig
Simon.Budig at unix-ag.org
Thu Jan 31 10:32:48 EST 2002
Michael Hudson <mwh at python.net> wrote:
> Simon Budig <Simon.Budig at unix-ag.org> 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:
> http://starship.python.net/crew/mwh/hacks/pyrepl.html
Unfortunately this is not an option, since this thing should have
as weak dependencies as possible.
Thanks,
Simon
--
Simon.Budig at unix-ag.org http://www.home.unix-ag.org/simon/
More information about the Python-list
mailing list