Skip to content

Commit

Permalink
Merge branch 'master' of github.com:crystallabs/tput.cr
Browse files Browse the repository at this point in the history
  • Loading branch information
docelic committed Feb 1, 2024
2 parents a3ef342 + 9ab06df commit 0a8cde9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/tput/coordinates.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ class Tput
# Gets terminal/screen size as number of columns and rows.
def get_screen_size
r, c = ENV["TPUT_SCREEN_SIZE"]?.try { |s| s.split('x', 2).map &.to_i } ||
Term::Screen.size_from_ioctl(STDIN) ||
Term::Screen.size_from_ioctl(STDOUT) ||
Term::Screen.size_from_ioctl(STDERR) ||
Term::Screen.size_from_env ||
Term::Screen.size_from_ansicon ||
Term::Screen.size ||
{DEFAULT_SCREEN_SIZE.height, DEFAULT_SCREEN_SIZE.width}
s = Size.new c, r
Log.trace { my s }
Expand Down

0 comments on commit 0a8cde9

Please sign in to comment.