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>
20 #ifdef HAVE_SYS_TIME_H
23 #include <mono/metadata/appdomain.h>
24 #include <mono/metadata/object-internals.h>
25 #include <mono/metadata/class-internals.h>
26 #include <mono/metadata/domain-internals.h>
27 #include <mono/metadata/gc-internals.h>
28 #include <mono/metadata/metadata.h>
29 #include <mono/metadata/console-io.h>
30 #include <mono/metadata/exception.h>
31 #include "icall-decl.h"
34 mono_console_init (void)
39 mono_console_handle_async_ops (void)
43 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
45 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle
, MonoError
* error
)
48 return GetConsoleMode (handle
, &mode
) != 0;
52 ves_icall_System_ConsoleDriver_SetEcho (MonoBoolean want_echo
, MonoError
* error
)
58 ves_icall_System_ConsoleDriver_SetBreak (MonoBoolean want_break
, MonoError
* error
)
64 ves_icall_System_ConsoleDriver_InternalKeyAvailable (gint32 timeout
, MonoError
* error
)
70 ves_icall_System_ConsoleDriver_TtySetup (MonoStringHandle keypad
, MonoStringHandle teardown
, MonoArrayHandleOut control_chars
, int **size
, MonoError
* error
)
74 #endif /* G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) */