[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] Fwd: Re: Feature proposal/request: input line highlig
Re: [Bug-readline] Fwd: Re: Feature proposal/request: input line highlighting
Fri, 12 Jun 2015 11:30:49 +0200
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
On 11 Jun 2015 18:10, Thomas Wolff wrote:
> as opposed to having a fancy colored prompt, I would like
to be able to
> set up coloring of the whole bash command input line (but
> following command output). This could be achieved by
adding a variable
> like "AFTERPROMPT_COMMAND" which is executed after a
prompt line is
> completed (or "PS9" which is output after a prompt line
> It could even be a nice idea to configure this behavior
> bash and readline, so the users have a choice whether to
> command input, readline-handled program input, or both.
> I would appreciate this feature, and maybe even supply a
patch if I had
> a clue where to hook it in...
this is already doable -- leave the end of PS1 enabling color.
this will color the input buffer blue
thanks for your response, but that's not what I meant because the
output of the invoked programs will stay blue. I'll illustrate my
idea with the attached screenshot, showing a few possible options.
Description: PNG image