add a default width for when not in a TTY

This commit is contained in:
DeedleFake
2022-08-29 15:12:19 -04:00
committed by GitHub
parent eb14e23796
commit 7a071370e2

View File

@@ -129,7 +129,7 @@ else
end end
require 'io/console' require 'io/console'
tw = STDOUT.winsize[1] tw = STDOUT.isatty ? STDOUT.winsize[1] : 80
# Art generated from https://fsymbols.com/generators/carty/ # Art generated from https://fsymbols.com/generators/carty/
# Used utf-8, editors messes up with the font and makes development harder. # Used utf-8, editors messes up with the font and makes development harder.