From 82386f21b91383ac8074561ee563cb407fee16f9 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 18 Jan 2021 22:28:54 -0800 Subject: [ruby/irb] Use a real screen size for pp by default https://github.com/ruby/irb/commit/9b9300dec2 --- lib/irb/color_printer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb') diff --git a/lib/irb/color_printer.rb b/lib/irb/color_printer.rb index 73a150f881..34ba437c87 100644 --- a/lib/irb/color_printer.rb +++ b/lib/irb/color_printer.rb @@ -4,7 +4,7 @@ require 'irb/color' module IRB class ColorPrinter < ::PP - def self.pp(obj, out = $>, width = 79) + def self.pp(obj, out = $>, width = Reline.get_screen_size.last) q = ColorPrinter.new(out, width) q.guard_inspect_key {q.pp obj} q.flush -- cgit v1.2.3