Skip to content
FutureBlitz

    Install

    Import std.term.widgets

    Aligned

    std.term.widgets

    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…")

    std/term/widgets.fb, line 104

    Report an issue with this page or with FutureBlitz on GitHub.