Lines Matching full:hdl
169 IsConsoleHandle(HANDLE hdl) in IsConsoleHandle() argument
174 T((T_CALLED("lib_win32con::IsConsoleHandle(HANDLE=%p"), hdl)); in IsConsoleHandle()
178 if (!GetConsoleMode(hdl, &dwFlag)) { in IsConsoleHandle()
197 HANDLE hdl = INVALID_HANDLE_VALUE; in _nc_console_test() local
199 hdl = _nc_console_handle(fd); in _nc_console_test()
200 code = (int) IsConsoleHandle(hdl); in _nc_console_test()
204 #define OutHandle() ((WINCONSOLE.isTermInfoConsole || WINCONSOLE.progMode) ? WINCONSOLE.hdl : WINCO…
209 if (WINCONSOLE.lastOut != WINCONSOLE.hdl) { in _nc_console_selectActiveHandle()
210 WINCONSOLE.lastOut = WINCONSOLE.hdl; in _nc_console_selectActiveHandle()
218 HANDLE hdl = _nc_console_handle(fd); in _nc_console_fd2handle() local
219 if (hdl == WINCONSOLE.inp) { in _nc_console_fd2handle()
221 } else if (hdl == WINCONSOLE.hdl) { in _nc_console_fd2handle()
222 T(("lib_win32con:validateHandle %d -> WINCONSOLE.hdl", fd)); in _nc_console_fd2handle()
223 } else if (hdl == WINCONSOLE.out) { in _nc_console_fd2handle()
227 hdl = INVALID_HANDLE_VALUE; in _nc_console_fd2handle()
230 assert(hdl != INVALID_HANDLE_VALUE); in _nc_console_fd2handle()
232 if (hdl != INVALID_HANDLE_VALUE) { in _nc_console_fd2handle()
233 if (hdl != WINCONSOLE.inp && (!WINCONSOLE.isTermInfoConsole && WINCONSOLE.progMode)) { in _nc_console_fd2handle()
234 if (hdl == WINCONSOLE.out && hdl != WINCONSOLE.hdl) { in _nc_console_fd2handle()
235 T(("lib_win32con:validateHandle forcing WINCONSOLE.out -> WINCONSOLE.hdl")); in _nc_console_fd2handle()
236 hdl = WINCONSOLE.hdl; in _nc_console_fd2handle()
240 return hdl; in _nc_console_fd2handle()
244 _nc_console_setmode(HANDLE hdl, const TTY * arg) in _nc_console_setmode() argument
260 if (hdl == WINCONSOLE.inp) { in _nc_console_setmode()
267 SetConsoleMode(hdl, dwFlag); in _nc_console_setmode()
284 SetConsoleMode(hdl, dwFlag); in _nc_console_setmode()
302 _nc_console_getmode(HANDLE hdl, TTY * arg) in _nc_console_getmode() argument
310 if (hdl == WINCONSOLE.inp) { in _nc_console_getmode()
311 if (GetConsoleMode(hdl, &dwFlag)) { in _nc_console_getmode()
320 if (GetConsoleMode(hdl, &dwFlag)) { in _nc_console_getmode()
335 _nc_console_flush(HANDLE hdl) in _nc_console_flush() argument
339 T((T_CALLED("lib_win32con::_nc_console_flush(hdl=%p"), hdl)); in _nc_console_flush()
341 if (hdl != INVALID_HANDLE_VALUE) { in _nc_console_flush()
342 if (hdl == WINCONSOLE.hdl || in _nc_console_flush()
343 hdl == WINCONSOLE.inp || in _nc_console_flush()
344 hdl == WINCONSOLE.out) { in _nc_console_flush()
423 if (write_screen(WINCONSOLE.hdl,
474 if (read_screen(WINCONSOLE.hdl, in read_screen_data()
493 if (GetConsoleScreenBufferInfo(WINCONSOLE.hdl, &(WINCONSOLE.SBI))) { in _nc_console_get_SBI()
594 SetConsoleScreenBufferSize(WINCONSOLE.hdl, coord); /* dwSize */ in _nc_console_set_scrollback()
595 SetConsoleWindowInfo(WINCONSOLE.hdl, TRUE, &rect); /* srWindow */ in _nc_console_set_scrollback()
832 HANDLE hdl, in _nc_console_twait() argument
853 #define CONSUME() ReadConsoleInput(hdl, &inp_rec, 1, &nRead) in _nc_console_twait()
857 TR(TRACE_IEVENT, ("start twait: hdl=%p, %d milliseconds, mode: %d", in _nc_console_twait()
858 hdl, milliseconds, mode)); in _nc_console_twait()
868 rc = WaitForSingleObject(hdl, (DWORD) milliseconds); in _nc_console_twait()
879 b = GetNumberOfConsoleInputEvents(hdl, &nRead); in _nc_console_twait()
896 f = PeekConsoleInput(hdl, pInpRec, nRead, &n); in _nc_console_twait()
922 b = PeekConsoleInput(hdl, &inp_rec, 1, &nRead); in _nc_console_twait()
1000 HANDLE hdl, in _nc_console_testmouse() argument
1012 hdl, in _nc_console_testmouse()
1024 HANDLE hdl, in _nc_console_read() argument
1040 while ((b = ReadConsoleInput(hdl, &inp_rec, 1, &nRead))) { in _nc_console_read()
1188 WINCONSOLE.hdl = WINCONSOLE.out; in _nc_console_checkinit()
1206 WINCONSOLE.hdl = WINCONSOLE.out; in _nc_console_checkinit()
1210 WINCONSOLE.hdl = in _nc_console_checkinit()
1230 if (WINCONSOLE.hdl != INVALID_HANDLE_VALUE) { in _nc_console_checkinit()
1238 GetConsoleCursorInfo(WINCONSOLE.hdl, &WINCONSOLE.save_CI); in _nc_console_checkinit()
1247 res = (WINCONSOLE.hdl != INVALID_HANDLE_VALUE); in _nc_console_checkinit()