Method: #screen_settings
- Defined in:
- lib/cetusql/cli_utils.rb
#screen_settings ⇒ Object
— end constants check screen size and accordingly adjust some variables
293 294 295 296 297 298 299 300 |
# File 'lib/cetusql/cli_utils.rb', line 293 def screen_settings $glines=%x(tput lines).to_i $gcols=%x(tput cols).to_i $grows = $glines - 3 $pagesize = 60 #$gviscols = 3 $pagesize = $grows * $gviscols end |