mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
M #-: fix expand CLI data with pager (#4296)
This commit is contained in:
parent
459e287ff1
commit
a52c751395
@ -639,7 +639,7 @@ module CLIHelper
|
||||
def expand_columns(expand_columns, all = false)
|
||||
return if expand_columns.empty?
|
||||
|
||||
if $stdout.tty?
|
||||
if $stdout.tty? || IO.console.tty?
|
||||
terminal_size = IO.console.winsize[1]
|
||||
else
|
||||
terminal_size = nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user