diff options
| author | Jeff Carr <[email protected]> | 2025-09-26 13:05:00 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-26 13:05:00 -0500 |
| commit | 23a1400692b1cc073945e6243fa8fd2b8c8bd231 (patch) | |
| tree | 017131c67292a8e1c58e9418545ebeed5ec32e29 /tablePB.go | |
| parent | 4d923f942fa406b253d5414e0b8d39a3a6012c18 (diff) | |
actually get the terminal widthv0.0.10
Diffstat (limited to 'tablePB.go')
| -rw-r--r-- | tablePB.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -23,6 +23,9 @@ func PrintTable(pb *guipb.Table) { } else { // log.Info("grid.Id =", pb.Grid.Id) } + if cursize, ok := getTerminalWidth(); ok { + TERMSIZE = cursize + } var h int = 0 var w int = 0 @@ -46,7 +49,9 @@ func PrintTable(pb *guipb.Table) { sizes = append(sizes, int(attr.Width)) } } - header, _ := StandardTableRowDebug(sizes, args) + // header, _ := StandardTableRowDebug(sizes, args) + // log.Info(header) + header, _ := StandardTableRow(sizes, args) log.Info(header) for i := range HEIGHT { |
