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

Revert "term: obtain the cursor position via termios.h (#11372)"

This reverts commit af28d09630.
This commit is contained in:
Alexander Medvednikov
2021-09-06 18:21:55 +03:00
parent af28d09630
commit 0376cbf6bd
19 changed files with 129 additions and 196 deletions

View File

@@ -1008,15 +1008,3 @@ pub fn glob(patterns ...string) ?[]string {
matches.sort()
return matches
}
pub fn last_error() IError {
$if windows {
code := int(C.GetLastError())
msg := get_error_msg(code)
return error_with_code(msg, code)
} $else {
code := C.errno
msg := posix_get_error_msg(code)
return error_with_code(msg, code)
}
}