2 * console-io.c: ConsoleDriver internal calls for Win32
5 * Gonzalo Paniagua Javier (gonzalo@ximian.com)
7 * Copyright (C) 2005-2009 Novell, Inc. (http://www.novell.com)
17 #include <sys/types.h>
19 #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-internal.h>
28 #include <mono/metadata/metadata.h>
29 #include <mono/metadata/threadpool.h>
31 #include <mono/metadata/console-io.h>
32 #include <mono/metadata/exception.h>
35 mono_console_init (void)
40 mono_console_handle_async_ops (void)
45 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle
)
49 return (GetFileType (handle
) == FILE_TYPE_CHAR
);
53 ves_icall_System_ConsoleDriver_SetEcho (MonoBoolean want_echo
)
59 ves_icall_System_ConsoleDriver_SetBreak (MonoBoolean want_break
)
65 ves_icall_System_ConsoleDriver_InternalKeyAvailable (gint32 timeout
)
71 ves_icall_System_ConsoleDriver_TtySetup (MonoString
*keypad
, MonoString
*teardown
, MonoArray
**control_chars
, int **size
)