Skip to content

Commit

Permalink
Fix crash when no terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukoposting committed Feb 10, 2024
1 parent b1eeb3e commit 7b15e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sensething/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def []=(k, v)
end

def self.term_width
sz = IO.console.winsize
sz = IO.console&.winsize
return 80 unless sz

sz[1]
Expand Down

0 comments on commit 7b15e73

Please sign in to comment.