We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c417a1 + 8cfa11d commit ea5d6d8Copy full SHA for ea5d6d8
lib/rdoc/stats/normal.rb
@@ -1,5 +1,5 @@
1
# frozen_string_literal: false
2
-require 'io/console/size'
+require 'io/console'
3
4
##
5
# Stats printer that prints just the files being documented with a progress
@@ -23,7 +23,7 @@ def print_file files_so_far, filename
23
24
# Print a progress bar, but make sure it fits on a single line. Filename
25
# will be truncated if necessary.
26
- terminal_width = IO.console_size[1].to_i.nonzero? || 80
+ terminal_width = IO.console.winsize[1].to_i.nonzero? || 80
27
max_filename_size = terminal_width - progress_bar.size
28
29
if filename.size > max_filename_size then
0 commit comments