extend/kernel: convert TTY-destined input to string
This commit is contained in:
parent
c1fe80ac82
commit
31a5df4bf2
@ -21,7 +21,7 @@ module Kernel
|
||||
Context.current.verbose?
|
||||
end
|
||||
|
||||
title = Tty.truncate(title) if $stdout.tty? && !verbose
|
||||
title = Tty.truncate(title.to_s) if $stdout.tty? && !verbose
|
||||
Formatter.headline(title, color: :blue)
|
||||
end
|
||||
|
||||
@ -50,7 +50,7 @@ module Kernel
|
||||
Context.current.verbose?
|
||||
end
|
||||
|
||||
title = Tty.truncate(title) if $stdout.tty? && !verbose && truncate == :auto
|
||||
title = Tty.truncate(title.to_s) if $stdout.tty? && !verbose && truncate == :auto
|
||||
Formatter.headline(title, color: :green)
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user