lib/gzr/commands/space/top.rb in gazer-0.2.44 vs lib/gzr/commands/space/top.rb in gazer-0.2.46
- old
+ new
@@ -63,10 +63,10 @@
table = TTY::Table.new(table_hash)
begin
if @options[:csv] then
output.puts render_csv(table)
else
- output.puts table.render(if @options[:plain] then :basic else :ascii end, alignments: [:right])
+ output.puts table.render(if @options[:plain] then :basic else :ascii end, alignments: [:right], width: @options[:width] || TTY::Screen.width)
end
end if table
end
end
end