(ctx context.Context)
| 448 | } |
| 449 | |
| 450 | func isCompactHeightMode(ctx context.Context) bool { |
| 451 | if hctx.GetConf(ctx).ForceCompactMode { |
| 452 | return true |
| 453 | } |
| 454 | _, height, err := getTerminalSize() |
| 455 | if err != nil { |
| 456 | hctx.GetLogger().Warnf("got err=%v when retrieving terminal dimensions, assuming the terminal is reasonably tall", err) |
| 457 | return false |
| 458 | } |
| 459 | return height < 25 |
| 460 | } |
| 461 | |
| 462 | func getBaseStyle(config hctx.ClientConfig) lipgloss.Style { |
| 463 | return lipgloss.NewStyle(). |
no test coverage detected