3 * ConsoleDriver internal calls for Win32
6 * Gonzalo Paniagua Javier (gonzalo@ximian.com)
8 * Copyright (C) 2005-2009 Novell, Inc. (http://www.novell.com)
9 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
19 #include <sys/types.h>
21 #ifdef HAVE_SYS_TIME_H
25 #include <mono/metadata/appdomain.h>
26 #include <mono/metadata/object-internals.h>
27 #include <mono/metadata/class-internals.h>
28 #include <mono/metadata/domain-internals.h>
29 #include <mono/metadata/gc-internals.h>
30 #include <mono/metadata/metadata.h>
32 #include <mono/metadata/console-io.h>
33 #include <mono/metadata/exception.h>
36 mono_console_init (void)
41 mono_console_handle_async_ops (void)
45 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
47 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle)
50 return GetConsoleMode (handle, &mode) != 0;
54 ves_icall_System_ConsoleDriver_SetEcho (MonoBoolean want_echo)
60 ves_icall_System_ConsoleDriver_SetBreak (MonoBoolean want_break)
66 ves_icall_System_ConsoleDriver_InternalKeyAvailable (gint32 timeout)
72 ves_icall_System_ConsoleDriver_TtySetup (MonoString *keypad, MonoString *teardown, MonoArray **control_chars, int **size)
76 #endif /* G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) */