Get The Number Of Columns And Rows In A Terminal Window With ENV Vars

ENV Vars

Both [TODO: Code shorthand span ] and [TODO: Code shorthand span ] set environmental vars for the number of columns and lines/rows in a terminal window. For example:

echo $COLUMNS

-- results

56
echo $ROWS

-- results

38

Notes

~ fin ~

References

  • Use tputs To Get The Number Of Columns And Lines/Rows Count In A Terminal Window On A Mac