|
From: | Linda Walsh |
Subject: | Re: PS1 multiline with colors |
Date: | Mon, 08 Jul 2013 14:39:52 -0700 |
User-agent: | Thunderbird |
Greg Wooledge wrote:
normal=$(tput sgr0) red=$(tput setaf 1) green=$(tput setaf 2) ...
--- BTW If you ever trace your code with "-x", tracing through the above will change your terminal text color. You can get around that by using read: read _CRST < <(tput sgr0) #Reset read _CRed < <(tput setaf 1) #Red read _CBLD < <(tput bold) #Bold
[Prev in Thread] | Current Thread | [Next in Thread] |