(clr aec.ANSI, s string)
| 481 | } |
| 482 | |
| 483 | func (h imgColumn) Print(clr aec.ANSI, s string) string { |
| 484 | switch h.Align { |
| 485 | case alignCenter: |
| 486 | return h.PrintC(clr, s) |
| 487 | case alignRight: |
| 488 | return h.PrintR(clr, s) |
| 489 | case alignLeft: |
| 490 | } |
| 491 | return h.PrintL(clr, s) |
| 492 | } |
| 493 | |
| 494 | func (h imgColumn) PrintC(clr aec.ANSI, s string) string { |
| 495 | ln := tui.Width(s) |
no test coverage detected