summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Támara Patiño <[email protected]>2024-05-22 00:16:38 -0400
committergit <[email protected]>2024-05-22 04:16:42 +0000
commit911b7d1dcfdb613ea5f648bd59bc6e29f9d54c49 (patch)
tree825bfaa4de29ceee7eb47105ec84f6e49276e4ce
parentae07c606b56881494bb4ff7a46609eab7f418a24 (diff)
[ruby/reline] Catches Errno::ENODEV and Errno::EBADF in
get_screen_size. Closes https://github.com/ruby/reline/pull/690 (https://github.com/ruby/reline/pull/702) * Catches exceptions Errno::ENODEV and Errno::EBADF in get_screen_size. Closes https://github.com/ruby/reline/pull/690 * Just catching Errno::ENOTTY and Errno::ENODEV https://github.com/ruby/reline/commit/a5b5298e4a
-rw-r--r--lib/reline/ansi.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb
index 45a475a787..fa9feb2630 100644
--- a/lib/reline/ansi.rb
+++ b/lib/reline/ansi.rb
@@ -235,7 +235,7 @@ class Reline::ANSI
s = [ENV["LINES"].to_i, ENV["COLUMNS"].to_i]
return s if s[0] > 0 && s[1] > 0
[24, 80]
- rescue Errno::ENOTTY
+ rescue Errno::ENOTTY, Errno::ENODEV
[24, 80]
end