bug-bash
[Top][All Lists]
Advanced

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

Re: Feature proposal/request: input line highlighting


From: Mike Frysinger
Subject: Re: Feature proposal/request: input line highlighting
Date: Fri, 12 Jun 2015 03:37:36 -0400

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 not the 
> 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 is completed).
> It could even be a nice idea to configure this behavior separately for 
> bash and readline, so the users have a choice whether to color just 
> 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.
        PS1='\[\e[0;33m\]$ \[\e[34;1m\]'

this will color the input buffer blue
-mike

Attachment: signature.asc
Description: Digital signature


reply via email to

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