1
1
Fork 0
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:
Tony Tkáčik 2019-03-24 17:17:36 +01:00
parent aafd96cc9b
commit 67ea2735e6
2 changed files with 17 additions and 6 deletions

View file

@ -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