Added option to clear screen / clear()

pull/689/head
Bowero 2019-06-26 18:54:15 +02:00 committed by Alexander Medvednikov
parent 142d3deab4
commit 7ff0e48434
1 changed files with 4 additions and 0 deletions

View File

@ -463,3 +463,7 @@ fn on_segfault(f voidptr) {
} }
} }
fn clear() {
C.printf('\x1b[2J')
C.printf('\x1b[H')
}