The Beauty — Terminal UI
Clear the terminal screen.
Ose.clear();
Irosu.fo("Fresh screen!");
Move cursor to position.
Ose.cursor(10, 5);
Irosu.fo("At position 10,5");
Set text foreground and background colors.
Ose.color("red");
Irosu.fo("Red text!");
Ose.color("white", "blue");
Irosu.fo("White on blue");
Set text style (bold, italic, underline).
Ose.style("bold");
Irosu.fo("Bold text!");
Ose.style("reset");
Irosu.fo("Normal text");
Get terminal dimensions.
ayanmo dim = Ose.size();
// dim.width, dim.height
// Rainbow text
Ose.clear();
ayanmo colors = ["red", "yellow", "green", "cyan", "blue", "magenta"];
fun color ninu colors {
Ose.color(color);
Irosu.fo("?");
}
Ose.style("reset");
Irosu.fo("");
Irosu.fo("Rainbow complete!");