Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash get width of terminal

# Gets the terminal width, in # characters
tput cols
# Gets the number of rows in the terminal
tput lines
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #width #terminal
ADD COMMENT
Topic
Name
5+6 =