git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/issues
diff options
context:
space:
mode:
Diffstat (limited to 'issues')
-rwxr-xr-xissues/display10
1 files changed, 9 insertions, 1 deletions
diff --git a/issues/display b/issues/display
index a66553d..0a19d43 100755
--- a/issues/display
+++ b/issues/display
@@ -11,6 +11,14 @@ for i in "${FARR[@]}";do
IFS=$'\n'
FLARR=( $(cat "$i") )
unset IFS
- if command -v figlet >/dev/null;then printf "%b\\n" "$i"|figlet; else printf "%b\\n" "$i";fi
+ if [ -z "$COLUMNS" ];then
+ COLUMNS="$(tput cols)"
+ [ -z "$COLUMNS"] && COLUMNS=20
+ fi
+ printf "\\033[;1m"
+ for ((j=0;j<$COLUMNS;++j)); do printf -- "-"; done
+ printf "\\n %b\\n" "$i"
+ for ((j=0;j<$COLUMNS;++j)); do printf -- "-"; done
+ printf "\\033[0m\\n"
printf "%b\\n" "${FLARR[@]}"
done