As a simple example, I want to write a CLI script which can print = across the entire width of the terminal window.
=
#!/usr/bin/env php
Inspired by @pixelbeat's answer, here's a horizontal bar brought to existence by tput, slight misuse of printf padding/filling and tr
tput
printf
tr
printf "%0$(tput cols)d" 0|tr '0' '='