#!/bin/sh -e

width="$({ stty size 2>/dev/null || echo "22 80"; } | cut -d" " -f 2)"
if [ "${width}" -ne 0 ]; then
  echo "${width}"
else
  echo "80"
fi
