Terminal control/Clear the screen

For terminals which support ANSI escape codes:

fn main() {
    println "\e[2J";
}

Attribution: This is a community solution for the Rosetta Code task Terminal control/Clear the screen in Zen C.

This article uses material from the Rosetta Code article Terminal control/Clear the screen, which is released under the GNU Free Documentation License 1.3. A list of the original authors can be found in the page history.