lib/ctioga2/commands/doc/help.rb in ctioga2-0.10.1 vs lib/ctioga2/commands/doc/help.rb in ctioga2-0.11

- old
+ new

@@ -79,16 +79,17 @@ # \todo maybe the part about sending to the pager should be # factorized into a neat utility class ? def print_commandline_options(cmds, groups) @to_tty = false if STDOUT.tty? + @to_tty = true begin require 'curses' Curses.init_screen @total_width = Curses.cols Curses.close_screen - @to_tty = true - rescue + rescue LoadError => e + # We'll be missing the exact term size end end @total_width ||= 80 # 80 by default # Disable color output if not a to a terminal