3 * UWP console support for Mono.
5 * Copyright 2016 Microsoft
6 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
10 #include "mono/utils/mono-compiler.h"
12 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
14 #include "mono/metadata/console-win32-internals.h"
17 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle)
20 error_init (&mono_error);
22 g_unsupported_api ("Console");
24 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "Console");
25 mono_error_set_pending_exception (&mono_error);
27 SetLastError (ERROR_NOT_SUPPORTED);
33 ves_icall_System_ConsoleDriver_SetEcho (MonoBoolean want_echo)
36 error_init (&mono_error);
38 g_unsupported_api ("Console");
40 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "Console");
41 mono_error_set_pending_exception (&mono_error);
43 SetLastError (ERROR_NOT_SUPPORTED);
49 ves_icall_System_ConsoleDriver_SetBreak (MonoBoolean want_break)
52 error_init (&mono_error);
54 g_unsupported_api ("Console");
56 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "Console");
57 mono_error_set_pending_exception (&mono_error);
59 SetLastError (ERROR_NOT_SUPPORTED);
65 ves_icall_System_ConsoleDriver_InternalKeyAvailable (gint32 timeout)
68 error_init (&mono_error);
70 g_unsupported_api ("Console");
72 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "Console");
73 mono_error_set_pending_exception (&mono_error);
75 SetLastError (ERROR_NOT_SUPPORTED);
81 ves_icall_System_ConsoleDriver_TtySetup (MonoString *keypad, MonoString *teardown, MonoArray **control_chars, int **size)
84 error_init (&mono_error);
86 g_unsupported_api ("Console");
88 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "Console");
89 mono_error_set_pending_exception (&mono_error);
91 SetLastError (ERROR_NOT_SUPPORTED);
96 #else /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */
98 MONO_EMPTY_SOURCE_FILE (console_win32_uwp);
99 #endif /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */