Browse Source

pkgsearch: fix colors

DanielFGray 2 years ago
parent
commit
3f17db56fa
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      pkgsearch

+ 4
- 3
pkgsearch View File

@@ -1,9 +1,10 @@
1 1
 #!/usr/bin/env bash
2 2
 
3 3
 declare -r esc=$'\033'
4
-declare -r c_red=$(tput setaf 1)
5
-declare -r c_blue=$(tput setaf 4)
6
-declare -r c_reset=$(tput sgr0)
4
+declare -r c_reset="${esc}[0m"
5
+declare -r c_red="${esc}[31m"
6
+declare -r c_green="${esc}[32m"
7
+declare -r c_blue="${esc}[34m"
7 8
 declare -a config_err
8 9
 declare -r config_dir="${XDG_CONFIG_DIR:-$HOME/.config}/pkgsearch"
9 10
 declare -r config_file="${config_dir}/conf"

Loading…
Cancel
Save