From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: Doug Evans <dje@google.com>
Cc: Joel Brobecker <brobecker@adacore.com>,
Pedro Alves <pedro@codesourcery.com>,
Marc Khouzam <marc.khouzam@ericsson.com>,
gdb@sourceware.org
Subject: Re: More descriptive prompt [was Re: Process exit in multi-process, and gdb's selected thread.]
Date: Wed, 25 Feb 2009 17:59:00 -0000 [thread overview]
Message-ID: <8ac60eac0902250959y125aa869tc56bb1fdc95c70bc@mail.gmail.com> (raw)
In-Reply-To: <e394668d0902250949s64d25c72v91b5756be53c5f6c@mail.gmail.com>
On Wed, Feb 25, 2009 at 9:49 AM, Doug Evans <dje@google.com> wrote:
> fwiw, I was actually proposing both.
> Provide simple things (a la PS1 in bash parlance or whatever),
> but also provide a way to run a (python) function to compute the prompt.
bash actually has a more powerful mechanism as well:
PROMPT_COMMAND
If set, the value is executed as a command prior to issuing
each primary prompt.
Sounds like a python or user-definable prompt_command + PS1-like
token expansion will address most needs.
--
Paul Pluzhnikov
next prev parent reply other threads:[~2009-02-25 17:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 18:12 Doug Evans
2009-02-24 18:26 ` Daniel Jacobowitz
2009-02-24 18:41 ` Pedro Alves
2009-02-24 19:09 ` Pedro Alves
2009-02-25 17:41 ` Joel Brobecker
2009-02-25 17:49 ` Doug Evans
2009-02-25 17:59 ` Paul Pluzhnikov [this message]
2009-02-25 18:52 ` More descriptive prompt Tom Tromey
2009-02-25 19:00 ` Doug Evans
2009-02-25 19:42 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8ac60eac0902250959y125aa869tc56bb1fdc95c70bc@mail.gmail.com \
--to=ppluzhnikov@google.com \
--cc=brobecker@adacore.com \
--cc=dje@google.com \
--cc=gdb@sourceware.org \
--cc=marc.khouzam@ericsson.com \
--cc=pedro@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox