From 0f1f724a916bf78ca73ee3002fa71eb96e516ff6 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 20 Mar 2020 21:12:37 +0100 Subject: [PATCH] term: make compilable with v2 on windows --- vlib/term/term_windows.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/term/term_windows.v b/vlib/term/term_windows.v index 7ad853222f..bc4031832e 100644 --- a/vlib/term/term_windows.v +++ b/vlib/term/term_windows.v @@ -22,7 +22,7 @@ fn C.GetConsoleScreenBufferInfo(handle os.HANDLE, info &CONSOLE_SCREEN_BUFFER_IN // get_terminal_size returns a number of colums and rows of terminal window. pub fn get_terminal_size() (int, int) { if is_atty(1) > 0 && os.getenv('TERM') != 'dumb' { - info := CONSOLE_SCREEN_BUFFER_INFO{} + info := C.CONSOLE_SCREEN_BUFFER_INFO{} if C.GetConsoleScreenBufferInfo(C.GetStdHandle(C.STD_OUTPUT_HANDLE), &info) { columns := int(info.srWindow.Right - info.srWindow.Left + 1)