mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
M #-: fix expand CLI data with pager (#4296)
This commit is contained in:
1 parent
459e287ff1
commit
a52c751395
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user