Merge pull request #21 from DeedleFake/enotty-fix

add a default width for when not in a TTY
This commit is contained in:
Alexey Varfolomeev
2022-08-30 07:22:40 +04:00
committed by GitHub

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.