Calendar: Difference between revisions
Content added Content deleted
(→{{header|Ruby}}: removed reference to ruby 1.8.7 - it's unsupported) |
(→{{header|Ruby}}: tput co gets the number of colors, not cols) |
||
Line 2,964: | Line 2,964: | ||
begin require 'io/console'; IO.console.winsize[1] |
begin require 'io/console'; IO.console.winsize[1] |
||
rescue LoadError |
rescue LoadError |
||
begin Integer(`tput |
begin Integer(`tput cols`) |
||
rescue |
rescue |
||
80; end; end; end |
80; end; end; end |