mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Changed position and made function public
This commit is contained in:
parent
7ff0e48434
commit
821c5934cc
10
os/os.v
10
os/os.v
@ -449,6 +449,11 @@ pub fn write_file(path, text string) {
|
|||||||
f.close()
|
f.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn clear() {
|
||||||
|
C.printf('\x1b[2J')
|
||||||
|
C.printf('\x1b[H')
|
||||||
|
}
|
||||||
|
|
||||||
fn on_segfault(f voidptr) {
|
fn on_segfault(f voidptr) {
|
||||||
$if windows {
|
$if windows {
|
||||||
return
|
return
|
||||||
@ -462,8 +467,3 @@ fn on_segfault(f voidptr) {
|
|||||||
# sigaction(SIGSEGV, &sa, 0);
|
# sigaction(SIGSEGV, &sa, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn clear() {
|
|
||||||
C.printf('\x1b[2J')
|
|
||||||
C.printf('\x1b[H')
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user