[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

detect prompt change for interactive python

From: gamename
Subject: detect prompt change for interactive python
Date: Wed, 16 Jul 2008 11:53:26 -0700 (PDT)
User-agent: G2/1.0


My normal prompt is "> ".  When I start python interactively with
"python -i", the prompt is now set to ">>> ".

Everything works fine except when I try to recall the previous
commands with "comint-previous-input".  The previous command is
restored to a position just after the first ">" sign.

Here are some examples.

bash prompt:
> oldCmdRecalled

python interactive:

behavior I want:
>>> oldCmdRecalled

How do I dynamically set the buffer to accept ">>>" as a prompt and
restore commands in the correct spot?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]