From e5743e6562af22dc0f10e1200364a8f775fc8bcc Mon Sep 17 00:00:00 2001 From: Eric Budd Date: Wed, 31 Jan 2018 00:25:52 -0500 Subject: [PATCH] Fix screen width Allow interface to use full screen width, while being at least 80 characters wide --- iris.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iris.rb b/iris.rb index 40ebae0..bc9a81a 100755 --- a/iris.rb +++ b/iris.rb @@ -299,7 +299,8 @@ class Message end class Display - WIDTH = 80 + MIN_WIDTH = 80 + WIDTH = [ENV['COLUMNS'].to_i, `tput cols`.chomp.to_i, MIN_WIDTH].compact.max def self.topic_index_width Corpus.topics.size.to_s.length