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

vlib: prepare modules hash and term for -Wimpure-v

This commit is contained in:
Delyan Angelov
2020-12-15 09:11:17 +02:00
parent ed50e22e18
commit 3064fff95b
3 changed files with 13 additions and 12 deletions

View File

@@ -117,7 +117,7 @@ fn supports_escape_sequences(fd int) bool {
// clear clears current terminal screen.
pub fn clear() {
$if !windows {
C.printf('\x1b[2J')
C.printf('\x1b[H')
print('\x1b[2J')
print('\x1b[H')
}
}