mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
nux: Improved color handling in terminals.
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
aafd96cc9b
commit
67ea2735e6
2 changed files with 17 additions and 6 deletions
|
|
@ -1,3 +1,5 @@
|
|||
nux.use nux/log
|
||||
|
||||
if [ -t 1 ] {
|
||||
readonly nc_bold=`tput setaf 0`
|
||||
readonly nc_bg_bold=`tput setab 0`
|
||||
|
|
@ -39,4 +41,7 @@ if [ -t 1 ] {
|
|||
readonly NC_White=$nc_white
|
||||
|
||||
readonly NC_error=$NC_Red
|
||||
|
||||
}
|
||||
|
||||
nux.log trace Terminal colors enabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue