RosettaCodeData/Task/Terminal-control-Dimensions/Tcl/terminal-control-dimensions-1.tcl
2020-02-17 23:21:07 -08:00

3 lines
124 B
Tcl

set width [exec tput cols]
set height [exec tput lines]
puts "The terminal is $width characters wide and has $height lines"