mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
term: fix typo in term_windows.c.v (#18745)
This commit is contained in:
parent
af38f8b3ba
commit
c75382ad23
@ -55,7 +55,7 @@ fn C.SetConsoleCursorPosition(handle C.HANDLE, coord C.COORD) bool
|
||||
// ref - https://docs.microsoft.com/en-us/windows/console/scrollconsolescreenbuffer
|
||||
fn C.ScrollConsoleScreenBuffer(output C.HANDLE, scroll_rect &C.SMALL_RECT, clip_rect &C.SMALL_RECT, des C.COORD, fill &C.CHAR_INFO) bool
|
||||
|
||||
// get_terminal_size returns a number of colums and rows of terminal window.
|
||||
// get_terminal_size returns a number of columns and rows of terminal window.
|
||||
pub fn get_terminal_size() (int, int) {
|
||||
if os.is_atty(1) > 0 && os.getenv('TERM') != 'dumb' {
|
||||
info := C.CONSOLE_SCREEN_BUFFER_INFO{}
|
||||
|
Loading…
Reference in New Issue
Block a user