I'm sure this is too late a response to help you, but perhaps it will help 
someone else who stumbles into this post.

You can accomplish your goal with the help of the bash trap command.

Add the following 2 entries to your .bashrc file:

PS1='[\u@\h \W]\$ \e[1m'
trap 'echo -ne "\e[0m"' DEBUG

PS1 is the normal bash prompt for RHEL, however we've added the [1m escape 
code for bold output.
We use trap and the echo command to reset our text output after every 
command is entered.

Breakdown of the escape codes:

\e      # <--- A shortcut for the \033 escape character, to start our 
escape code
[        # <-- Marks the beginning of non-printed characters in our escape 
sequence
1m     # Sets the bold SGR parameter.
0m    # Clears the bold SGR parameter.

You can use other SGR parameters, and even combine them using the ; 
character. E.g.:

1;7m # <-- BOLD, Negative

Here's a full list of SGR parameters from Wikipedia

http://en.wikipedia.org/wiki/ANSI_escape_code#graphics

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to