diff options
Diffstat (limited to 'issues')
-rwxr-xr-x | issues/display | 10 |
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 |