func LeftPadMaxLine(line string, length, leftPad int) string {
	cleaned, escapes := ExtractTermEscapes(line)
	scrWidth := runewidth.StringWidth(cleaned)
	if scrWidth+leftPad > length {
		cleaned = runewidth.Truncate(cleaned, length-leftPad, "…")
	} else if scrWidth+leftPad < length {
		cleaned = runewidth.FillRight(cleaned, length-leftPad)
	}
	rightPart := ApplyTermEscapes(cleaned, escapes)
	pad := strings.Repeat(" ", leftPad)
	return pad + rightPart
}
LeftPadMaxLine pads a line on the left by a specified amount and pads the
string on the right to fill the maxLength.
If the given string is too long, it is truncated with an ellipsis.
Handle properly terminal color escape code
package text
import (
	"bytes"
	"strings"
	"github.com/mattn/go-runewidth"
)