Skip to content

Instantly share code, notes, and snippets.

@PaulChana
Created January 17, 2018 12:08
Show Gist options
  • Save PaulChana/bcd12f1fbae59897269b5e0e5dcf9810 to your computer and use it in GitHub Desktop.
Save PaulChana/bcd12f1fbae59897269b5e0e5dcf9810 to your computer and use it in GitHub Desktop.
[bash cols and rows] Get number of rows and cols #bash #shell
tput lines # outputs the number of lines of the present terminal window.
tput cols # outputs the number of columns of the present terminal window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment