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

live: Fix MSVC hot code reloading (#2460)

This commit is contained in:
Emily Hudson
2019-10-21 02:15:43 +01:00
committed by joe-conigliaro
parent 333f0ab89f
commit 2829298de7
2 changed files with 12 additions and 2 deletions

View File

@ -660,8 +660,10 @@ pub fn write_file(path, text string) {
}
pub fn clear() {
C.printf('\x1b[2J')
C.printf('\x1b[H')
$if !windows {
C.printf('\x1b[2J')
C.printf('\x1b[H')
}
}
fn on_segfault(f voidptr) {