pr_line() {
  buf=$1
  # SC: "i is unused"
  # shellcheck disable=2034
  for i in r i c i n g $(seq "$3"); do
    buf="$buf─"
  done
  printf '%s\n' "$buf$2"
}

# get longest line
length=$(os)
l2=$(model)
[ ${#length} -lt ${#l2} ] && length=$l2

# print top borders
pr_line ┌ ┐ ${#length}
pr_host ${#length}
pr_line ├ ┤ ${#length}

column -t -s ^ <<EOF
│ ^$(model)^│
│ ^$(os)^│
│ ^$(temp)^│
│ ^$(mem)^│
$(space)
EOF

# print bottom borders
pr_line └ ┘ ${#length}
