Skip to content

Commit a5b5298

Browse files
authored
Catches Errno::ENODEV and Errno::EBADF in get_screen_size. Closes #690 (#702)
* Catches exceptions Errno::ENODEV and Errno::EBADF in get_screen_size. Closes #690 * Just catching Errno::ENOTTY and Errno::ENODEV
1 parent ecadc4e commit a5b5298

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/reline/ansi.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def self.get_screen_size
235235
s = [ENV["LINES"].to_i, ENV["COLUMNS"].to_i]
236236
return s if s[0] > 0 && s[1] > 0
237237
[24, 80]
238-
rescue Errno::ENOTTY
238+
rescue Errno::ENOTTY, Errno::ENODEV
239239
[24, 80]
240240
end
241241

0 commit comments

Comments
 (0)