1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Added option to clear screen / clear()

This commit is contained in:
Bowero 2019-06-26 18:54:15 +02:00 committed by Alexander Medvednikov
parent 142d3deab4
commit 7ff0e48434

View File

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