Lines Matching +full:y +full:- +full:origin
2 * Copyright 2020-2021,2023 Thomas E. Dickey *
3 * Copyright 1998-2009,2010 Free Software Foundation, Inc. *
36 * TODO - GetMousePos(POINT * result) from ntconio.c
144 *Lines = (int) (WINCONSOLE.SBI.dwSize.Y); in _nc_console_size()
147 *Lines = (int) (WINCONSOLE.SBI.srWindow.Bottom + 1 - in _nc_console_size()
149 *Cols = (int) (WINCONSOLE.SBI.srWindow.Right + 1 - in _nc_console_size()
220 T(("lib_win32con:validateHandle %d -> WINCONSOLE.inp", fd)); in _nc_console_fd2handle()
222 T(("lib_win32con:validateHandle %d -> WINCONSOLE.hdl", fd)); in _nc_console_fd2handle()
224 T(("lib_win32con:validateHandle %d -> WINCONSOLE.out", fd)); in _nc_console_fd2handle()
235 T(("lib_win32con:validateHandle forcing WINCONSOLE.out -> WINCONSOLE.hdl")); in _nc_console_fd2handle()
261 dwFlag = arg->dwFlagIn | ENABLE_MOUSE_INPUT | VT_FLAG_IN; in _nc_console_setmode()
270 dwFlag = arg->dwFlagOut; in _nc_console_setmode()
278 dwFlag = arg->dwFlagOut; in _nc_console_setmode()
287 dwFlag = arg->dwFlagIn | ENABLE_MOUSE_INPUT; in _nc_console_setmode()
312 arg->dwFlagIn = dwFlag; in _nc_console_getmode()
315 arg->dwFlagOut = dwFlag; in _nc_console_getmode()
321 arg->dwFlagOut = dwFlag; in _nc_console_getmode()
324 arg->dwFlagIn = dwFlag; in _nc_console_getmode()
384 WINCONSOLE.save_region.Bottom = (SHORT) (WINCONSOLE.SBI.dwSize.Y - 1); in save_original_screen()
385 WINCONSOLE.save_region.Right = (SHORT) (WINCONSOLE.SBI.dwSize.X - 1); in save_original_screen()
420 bufferCoord.Y = (SHORT) (WINCONSOLE.window_only ?
429 mvcur(-1, -1, LINES - 2, 0);
430 T(("... restore original screen contents ok %dx%d (%d,%d - %d,%d)",
431 WINCONSOLE.save_size.Y,
452 - WINCONSOLE.save_region.Left + 1); in read_screen_data()
453 WINCONSOLE.save_size.Y = (SHORT) (WINCONSOLE.save_region.Bottom in read_screen_data()
454 - WINCONSOLE.save_region.Top + 1); in read_screen_data()
456 want = (size_t) (WINCONSOLE.save_size.X * WINCONSOLE.save_size.Y); in read_screen_data()
461 bufferCoord.Y = (SHORT) (WINCONSOLE.window_only ? in read_screen_data()
464 T(("... reading console %s %dx%d into %d,%d - %d,%d at %d,%d", in read_screen_data()
466 WINCONSOLE.save_size.Y, WINCONSOLE.save_size.X, in read_screen_data()
471 bufferCoord.Y, in read_screen_data()
495 T(("... buffer(X:%d Y:%d)", in _nc_console_get_SBI()
497 WINCONSOLE.SBI.dwSize.Y)); in _nc_console_get_SBI()
498 T(("... window(X:%d Y:%d)", in _nc_console_get_SBI()
500 WINCONSOLE.SBI.dwMaximumWindowSize.Y)); in _nc_console_get_SBI()
501 T(("... cursor(X:%d Y:%d)", in _nc_console_get_SBI()
503 WINCONSOLE.SBI.dwCursorPosition.Y)); in _nc_console_get_SBI()
510 WINCONSOLE.origin.X = 0; in _nc_console_get_SBI()
511 WINCONSOLE.origin.Y = 0; in _nc_console_get_SBI()
513 WINCONSOLE.origin.X = WINCONSOLE.SBI.srWindow.Left; in _nc_console_get_SBI()
514 WINCONSOLE.origin.Y = WINCONSOLE.SBI.srWindow.Top; in _nc_console_get_SBI()
527 * In "normal" mode, reset the buffer- and window-sizes back to their original values.
542 info->srWindow.Top, in _nc_console_set_scrollback()
543 info->srWindow.Left, in _nc_console_set_scrollback()
544 info->srWindow.Bottom, in _nc_console_set_scrollback()
545 info->srWindow.Right)); in _nc_console_set_scrollback()
547 info->dwSize.Y, in _nc_console_set_scrollback()
548 info->dwSize.X)); in _nc_console_set_scrollback()
551 rect = info->srWindow; in _nc_console_set_scrollback()
552 coord = info->dwSize; in _nc_console_set_scrollback()
558 int high = info->srWindow.Bottom - info->srWindow.Top + 1; in _nc_console_set_scrollback()
559 int wide = info->srWindow.Right - info->srWindow.Left + 1; in _nc_console_set_scrollback()
574 rect.Right = (SHORT) (wide - 1); in _nc_console_set_scrollback()
575 rect.Bottom = (SHORT) (high - 1); in _nc_console_set_scrollback()
578 coord.Y = (SHORT) high; in _nc_console_set_scrollback()
580 if (info->dwSize.Y != high || in _nc_console_set_scrollback()
581 info->dwSize.X != wide || in _nc_console_set_scrollback()
582 info->srWindow.Top != 0 || in _nc_console_set_scrollback()
583 info->srWindow.Left != 0) { in _nc_console_set_scrollback()
590 T(("... coord %d,%d", coord.Y, coord.X)); in _nc_console_set_scrollback()
591 T(("... rect %d,%d - %d,%d", in _nc_console_set_scrollback()
613 diff = (uend.QuadPart - ustart.QuadPart) / 10000; in tdiff()
621 milliseconds -= diff; in Adjust()
681 sp->_drv_mouse_old_buttons = sp->_drv_mouse_new_buttons; in handle_mouse()
682 sp->_drv_mouse_new_buttons = mer.dwButtonState & BUTTON_MASK; in handle_mouse()
686 * FIXME: implement continuous event-tracking. in handle_mouse()
688 if (sp->_drv_mouse_new_buttons != sp->_drv_mouse_old_buttons) { in handle_mouse()
691 if (sp->_drv_mouse_new_buttons) { in handle_mouse()
692 work.bstate |= decode_mouse(sp, sp->_drv_mouse_new_buttons); in handle_mouse()
695 work.bstate |= (decode_mouse(sp, sp->_drv_mouse_old_buttons) in handle_mouse()
701 work.y = mer.dwMousePosition.Y - AdjustY(); in handle_mouse()
703 sp->_drv_mouse_fifo[sp->_drv_mouse_tail] = work; in handle_mouse()
704 sp->_drv_mouse_tail += 1; in handle_mouse()
715 return ((key1 < key2) ? -1 : ((key1 == key2) ? 0 : 1)); in rkeycompare()
724 return ((key1 < key2) ? -1 : ((key1 == key2) ? 0 : 1)); in keycompare()
730 int code = -1; in MapKey()
747 code = -code; in MapKey()
756 int code = -1; in AnsiKey()
773 code = -code; in AnsiKey()
840 DWORD nRead = 0, rc = (DWORD) (-1); in _nc_console_twait()
848 (void) evl; /* TODO: implement wgetch-events */ in _nc_console_twait()
978 code = -1; in _nc_console_twait()
1008 if (sp->_drv_mouse_head < sp->_drv_mouse_tail) { in _nc_console_testmouse()
1027 int rc = -1; in _nc_console_read()
1051 * There are 24 virtual function-keys, and typically in _nc_console_read()
1052 * 12 function-keys on a keyboard. Use the shift-modifier in _nc_console_read()
1065 if (sp->_keypad_on) { in _nc_console_read()
1091 - 0 : Not a TTY
1092 - 1 : A Windows character device detected by _isatty
1093 - 2 : A future implementation may return 2 for mintty
1109 "On newer versions of Windows, the calling program should create a PTY-like.\n" in _nc_console_isatty()
1151 (DWORD) GenMap((VK_F1 + (i - N_INI)), in _nc_console_checkinit()
1152 (KEY_F(1) + (i - N_INI))); in _nc_console_checkinit()
1154 (DWORD) GenMap((VK_F1 + (i - N_INI)), in _nc_console_checkinit()
1155 (';' + (i - N_INI))); in _nc_console_checkinit()
1240 (WINCONSOLE.save_CI.bVisible ? "" : "not-"), in _nc_console_checkinit()