irix: ASCII

This commit is contained in:
Dylan Araps 2020-03-10 00:06:06 +02:00
parent 6558b34254
commit 577e8483a7
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

22
pfetch
View File

@ -25,7 +25,7 @@ log() {
# Construct the information string. # Construct the information string.
out="[3${PF_COL1-4};1m${name}" out="[3${PF_COL1-4};1m${name}"
out="$out${PF_SEP}[$((info_length-${#name}))C" out="$out${PF_SEP}[$((info_length-${#name}))C"
out="$out[3${PF_COL2-7}m${info:-?}" out="$out[3${PF_COL2-7}m$info"
} }
get_title() { get_title() {
@ -216,7 +216,9 @@ get_kernel() {
case $os in case $os in
# Don't print kernel output on some systems as the # Don't print kernel output on some systems as the
# OS name includes it. # OS name includes it.
*BSD*|Haiku|Minix) ;; *BSD*|Haiku|Minix)
log kernel "?"
;;
IRIX) IRIX)
kernel=$(uname -vR) kernel=$(uname -vR)
@ -1089,14 +1091,14 @@ get_ascii() {
;; ;;
[Ii][Rr][Ii][Xx]*) [Ii][Rr][Ii][Xx]*)
read_ascii 4 <<-EOF read_ascii 1 <<-EOF
TODO ${c1} __
TODO ${c1} \\ \\ __
TODO ${c1} \\ \\ / /
TODO ${c1} \\ v /
TODO ${c1} / . \\
TODO ${c1} /_/ \\ \\
TODO ${c1} \\_\\
EOF EOF
;; ;;