Import std.term.widgets
Aligned
function
Public Function Aligned(text: String, width: Int, alignment: Alignment): String
text in width columns: padded with spaces as alignment says, or as it is when it's as wide
or wider.
Examples
Expect(Aligned("ab", 5, Alignment.RIGHT) == " ab")
Expect(Truncated("abcdef", 4) == "abc…")Report an issue with this page or with FutureBlitz on GitHub.