How to get the terminal window's size in RubyTagged ruby, console, tput, cols, columns Languages rubyrequire 'io/console' IO.console.winsize In the terminal you can use tput cols. Edit Delete