Lines Matching refs:info

68 static void uv__tty_update_virtual_window(CONSOLE_SCREEN_BUFFER_INFO* info);
413 CONSOLE_SCREEN_BUFFER_INFO info; in uv_tty_get_winsize() local
415 if (!GetConsoleScreenBufferInfo(tty->handle, &info)) { in uv_tty_get_winsize()
420 uv__tty_update_virtual_window(&info); in uv_tty_get_winsize()
1129 static void uv__tty_update_virtual_window(CONSOLE_SCREEN_BUFFER_INFO* info) { in uv__tty_update_virtual_window() argument
1130 uv_tty_virtual_width = info->dwSize.X; in uv__tty_update_virtual_window()
1131 uv_tty_virtual_height = info->srWindow.Bottom - info->srWindow.Top + 1; in uv__tty_update_virtual_window()
1135 uv_tty_virtual_offset = info->dwCursorPosition.Y; in uv__tty_update_virtual_window()
1136 } else if (uv_tty_virtual_offset < info->dwCursorPosition.Y - in uv__tty_update_virtual_window()
1140 uv_tty_virtual_offset = info->dwCursorPosition.Y - in uv__tty_update_virtual_window()
1143 if (uv_tty_virtual_offset + uv_tty_virtual_height > info->dwSize.Y) { in uv__tty_update_virtual_window()
1144 uv_tty_virtual_offset = info->dwSize.Y - uv_tty_virtual_height; in uv__tty_update_virtual_window()
1153 CONSOLE_SCREEN_BUFFER_INFO* info, int x, unsigned char x_relative, int y, in uv__tty_make_real_coord() argument
1157 uv__tty_update_virtual_window(info); in uv__tty_make_real_coord()
1161 y = info->dwCursorPosition.Y + y; in uv__tty_make_real_coord()
1174 x = info->dwCursorPosition.X + x; in uv__tty_make_real_coord()
1212 CONSOLE_SCREEN_BUFFER_INFO info; in uv__tty_move_caret() local
1220 if (!GetConsoleScreenBufferInfo(handle->handle, &info)) { in uv__tty_move_caret()
1224 pos = uv__tty_make_real_coord(handle, &info, x, x_relative, y, y_relative); in uv__tty_move_caret()
1306 CONSOLE_SCREEN_BUFFER_INFO info; in uv__tty_clear() local
1351 if (!GetConsoleScreenBufferInfo(handle->handle, &info)) { in uv__tty_clear()
1356 start = uv__tty_make_real_coord(handle, &info, x1, x1r, y1, y1r); in uv__tty_clear()
1357 end = uv__tty_make_real_coord(handle, &info, x2, x2r, y2, y2r); in uv__tty_clear()
1358 count = (end.Y * info.dwSize.X + end.X) - in uv__tty_clear()
1359 (start.Y * info.dwSize.X + start.X) + 1; in uv__tty_clear()
1367 info.wAttributes, in uv__tty_clear()
1385 WORD fg = info.wAttributes & 0xF; \
1386 WORD bg = info.wAttributes & 0xF0; \
1387 info.wAttributes &= 0xFF00; \
1388 info.wAttributes |= fg << 4; \
1389 info.wAttributes |= bg >> 4; \
1396 CONSOLE_SCREEN_BUFFER_INFO info; in uv__tty_set_style() local
1488 if (!GetConsoleScreenBufferInfo(handle->handle, &info)) { in uv__tty_set_style()
1493 if ((info.wAttributes & COMMON_LVB_REVERSE_VIDEO) > 0) { in uv__tty_set_style()
1498 info.wAttributes &= ~(FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE); in uv__tty_set_style()
1499 if (fg_color & 1) info.wAttributes |= FOREGROUND_RED; in uv__tty_set_style()
1500 if (fg_color & 2) info.wAttributes |= FOREGROUND_GREEN; in uv__tty_set_style()
1501 if (fg_color & 4) info.wAttributes |= FOREGROUND_BLUE; in uv__tty_set_style()
1506 info.wAttributes |= FOREGROUND_INTENSITY; in uv__tty_set_style()
1508 info.wAttributes &= ~FOREGROUND_INTENSITY; in uv__tty_set_style()
1513 info.wAttributes &= ~(BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE); in uv__tty_set_style()
1514 if (bg_color & 1) info.wAttributes |= BACKGROUND_RED; in uv__tty_set_style()
1515 if (bg_color & 2) info.wAttributes |= BACKGROUND_GREEN; in uv__tty_set_style()
1516 if (bg_color & 4) info.wAttributes |= BACKGROUND_BLUE; in uv__tty_set_style()
1521 info.wAttributes |= BACKGROUND_INTENSITY; in uv__tty_set_style()
1523 info.wAttributes &= ~BACKGROUND_INTENSITY; in uv__tty_set_style()
1529 info.wAttributes |= COMMON_LVB_REVERSE_VIDEO; in uv__tty_set_style()
1531 info.wAttributes &= ~COMMON_LVB_REVERSE_VIDEO; in uv__tty_set_style()
1535 if ((info.wAttributes & COMMON_LVB_REVERSE_VIDEO) > 0) { in uv__tty_set_style()
1539 if (!SetConsoleTextAttribute(handle->handle, info.wAttributes)) { in uv__tty_set_style()
1550 CONSOLE_SCREEN_BUFFER_INFO info; in uv__tty_save_state() local
1556 if (!GetConsoleScreenBufferInfo(handle->handle, &info)) { in uv__tty_save_state()
1561 uv__tty_update_virtual_window(&info); in uv__tty_save_state()
1563 handle->tty.wr.saved_position.X = info.dwCursorPosition.X; in uv__tty_save_state()
1564 handle->tty.wr.saved_position.Y = info.dwCursorPosition.Y - in uv__tty_save_state()
1569 handle->tty.wr.saved_attributes = info.wAttributes & in uv__tty_save_state()
1580 CONSOLE_SCREEN_BUFFER_INFO info; in uv__tty_restore_state() local
1600 if (!GetConsoleScreenBufferInfo(handle->handle, &info)) { in uv__tty_restore_state()
1605 new_attributes = info.wAttributes; in uv__tty_restore_state()