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"
15 #include "icall-decl.h"
18 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle
, MonoError
* error
)
20 g_unsupported_api ("Console");
22 mono_error_set_not_supported (error
, G_UNSUPPORTED_API
, "Console");
24 SetLastError (ERROR_NOT_SUPPORTED
);
30 ves_icall_System_ConsoleDriver_SetEcho (MonoBoolean want_echo
, MonoError
* error
)
32 g_unsupported_api ("Console");
34 mono_error_set_not_supported (error
, G_UNSUPPORTED_API
, "Console");
36 SetLastError (ERROR_NOT_SUPPORTED
);
42 ves_icall_System_ConsoleDriver_SetBreak (MonoBoolean want_break
, MonoError
* error
)
44 g_unsupported_api ("Console");
46 mono_error_set_not_supported (error
, G_UNSUPPORTED_API
, "Console");
48 SetLastError (ERROR_NOT_SUPPORTED
);
54 ves_icall_System_ConsoleDriver_InternalKeyAvailable (gint32 timeout
, MonoError
* error
)
56 g_unsupported_api ("Console");
58 mono_error_set_not_supported (error
, G_UNSUPPORTED_API
, "Console");
60 SetLastError (ERROR_NOT_SUPPORTED
);
66 ves_icall_System_ConsoleDriver_TtySetup (MonoStringHandle keypad
, MonoStringHandle teardown
, MonoArrayHandleOut control_chars
, int **size
, MonoError
* error
)
68 g_unsupported_api ("Console");
70 mono_error_set_not_supported (error
, G_UNSUPPORTED_API
, "Console");
72 SetLastError (ERROR_NOT_SUPPORTED
);
77 #else /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */
79 MONO_EMPTY_SOURCE_FILE (console_win32_uwp
);
80 #endif /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */