1 /**
2  * \file
3  * Null driver, does nothing.
4  *
5  * Author:
6  *	Gonzalo Paniagua Javier (gonzalo@ximian.com)
7  *
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.
10  */
11 
12 #include <mono/metadata/appdomain.h>
13 #include <mono/metadata/object-internals.h>
14 #include <mono/metadata/class-internals.h>
15 #include <mono/metadata/domain-internals.h>
16 #include <mono/metadata/gc-internals.h>
17 
18 #include <mono/metadata/console-io.h>
19 #include <mono/metadata/exception.h>
20 #include <mono/metadata/w32file.h>
21 #include <mono/utils/w32api.h>
22 
23 void
mono_console_init(void)24 mono_console_init (void)
25 {
26 }
27 
28 void
mono_console_handle_async_ops(void)29 mono_console_handle_async_ops (void)
30 {
31 }
32 
33 MonoBoolean
ves_icall_System_ConsoleDriver_Isatty(HANDLE handle)34 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle)
35 {
36 	return mono_w32file_get_type (handle) == FILE_TYPE_CHAR;
37 }
38 
39 MonoBoolean
ves_icall_System_ConsoleDriver_SetEcho(MonoBoolean want_echo)40 ves_icall_System_ConsoleDriver_SetEcho (MonoBoolean want_echo)
41 {
42 	return FALSE;
43 }
44 
45 MonoBoolean
ves_icall_System_ConsoleDriver_SetBreak(MonoBoolean want_break)46 ves_icall_System_ConsoleDriver_SetBreak (MonoBoolean want_break)
47 {
48 	return FALSE;
49 }
50 
51 gint32
ves_icall_System_ConsoleDriver_InternalKeyAvailable(gint32 timeout)52 ves_icall_System_ConsoleDriver_InternalKeyAvailable (gint32 timeout)
53 {
54 	return FALSE;
55 }
56 
57 MonoBoolean
ves_icall_System_ConsoleDriver_TtySetup(MonoString * keypad,MonoString * teardown,MonoArray ** control_chars,int ** size)58 ves_icall_System_ConsoleDriver_TtySetup (MonoString *keypad, MonoString *teardown, MonoArray **control_chars, int **size)
59 {
60 	return FALSE;
61 }
62