I am writing a BASIC Interpreter for the Command Line in Swift 2, and I cannot find a way to implement the simple command, CLS (clear all text from the Terminal.) Should I s
You can use the following ANSI sequence:
print("\u{001B}[2J")
... where \u{001B} is ESCAPE and [2J is clear screen.
\u{001B}
ESCAPE
[2J