mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
ci: vfmt vlib/os/process_windows.c.v and vlib/os/os.c.v
This commit is contained in:
parent
f54f156d25
commit
eb82a72012
2 changed files with 4 additions and 3 deletions
|
@ -554,7 +554,8 @@ pub fn get_raw_line() string {
|
|||
h_input := C.GetStdHandle(C.STD_INPUT_HANDLE)
|
||||
mut bytes_read := u32(0)
|
||||
if is_atty(0) > 0 {
|
||||
x := C.ReadConsole(h_input, buf, max_line_chars * 2, voidptr(&bytes_read), 0)
|
||||
x := C.ReadConsole(h_input, buf, max_line_chars * 2, voidptr(&bytes_read),
|
||||
0)
|
||||
if !x {
|
||||
return tos(buf, 0)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue