[misc] move print_colors to bin folder

This commit is contained in:
Klesh Wong 2020-11-19 17:27:51 +08:00
parent 0ce11f5bd4
commit ac47877ada
2 changed files with 7 additions and 8 deletions

7
bin/print_colors Executable file
View File

@ -0,0 +1,7 @@
#!/bin/fish
set x (tput op)
set y (printf '%76s')
for i in (seq 256)
printf "%3s %s%s%s%s\n" $i (tput setaf $i) (tput setab $i) $y $x
end

View File

@ -1,8 +0,0 @@
function print_colors -d 'print out all terminal colors'
set x (tput op)
set y (printf '%76s')
for i in (seq 256)
printf "%3s %s%s%s%s\n" $i (tput setaf $i) (tput setab $i) $y $x
end
end