[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 |
Hi,
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:
>oldCmdRecalled>>
behavior I want:
>>> oldCmdRecalled
How do I dynamically set the buffer to accept ">>>" as a prompt and
restore commands in the correct spot?
THanks
-T
- detect prompt change for interactive python,
gamename <=