6#if defined(DART_HOST_OS_WINDOWS)
12#ifndef ENABLE_VIRTUAL_TERMINAL_INPUT
13#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x0200
16#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
17#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
24 HANDLE h = GetStdHandle(STD_INPUT_HANDLE);
36 HANDLE h = GetStdHandle(STD_INPUT_HANDLE);
38 if (!GetConsoleMode(
h, &
mode)) {
41 *enabled = ((
mode & ENABLE_ECHO_INPUT) != 0);
46 HANDLE h = GetStdHandle(STD_INPUT_HANDLE);
48 if (!GetConsoleMode(
h, &
mode)) {
52 mode |= ENABLE_ECHO_INPUT;
54 mode &= ~ENABLE_ECHO_INPUT;
56 return SetConsoleMode(
h,
mode);
73 HANDLE h = GetStdHandle(STD_INPUT_HANDLE);
75 if (!GetConsoleMode(
h, &
mode)) {
78 *enabled = (
mode & ENABLE_LINE_INPUT) != 0;
83 HANDLE h = GetStdHandle(STD_INPUT_HANDLE);
85 if (!GetConsoleMode(
h, &
mode)) {
89 mode |= ENABLE_LINE_INPUT;
91 mode &= ~ENABLE_LINE_INPUT;
93 return SetConsoleMode(
h,
mode);
97 ASSERT(supported !=
nullptr);
98 HANDLE h = GetStdHandle(STD_INPUT_HANDLE);
104 if (!GetConsoleMode(
h, &
mode)) {
108 *supported = (
mode & ENABLE_VIRTUAL_TERMINAL_INPUT) != 0;
115 h = GetStdHandle(STD_OUTPUT_HANDLE);
117 h = GetStdHandle(STD_ERROR_HANDLE);
119 CONSOLE_SCREEN_BUFFER_INFO
info;
120 if (!GetConsoleScreenBufferInfo(
h, &
info)) {
129 ASSERT(supported !=
nullptr);
132 h = GetStdHandle(STD_OUTPUT_HANDLE);
134 h = GetStdHandle(STD_ERROR_HANDLE);
141 if (!GetConsoleMode(
h, &
mode)) {
145 *supported = (
mode & ENABLE_VIRTUAL_TERMINAL_PROCESSING) != 0;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static bool read(SkStream *stream, void *buffer, size_t amount)
static bool GetEchoNewlineMode(intptr_t fd, bool *enabled)
static bool GetEchoMode(intptr_t fd, bool *enabled)
static bool SetEchoMode(intptr_t fd, bool enabled)
static bool ReadByte(intptr_t fd, int *byte)
static bool AnsiSupported(intptr_t fd, bool *supported)
static bool SetLineMode(intptr_t fd, bool enabled)
static bool GetLineMode(intptr_t fd, bool *enabled)
static bool SetEchoNewlineMode(intptr_t fd, bool enabled)
static bool GetTerminalSize(intptr_t fd, int size[2])
static bool AnsiSupported(intptr_t fd, bool *supported)
void ReadFile(uint8_t **data, intptr_t *file_len, void *stream)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
#define INVALID_HANDLE_VALUE
WINBASEAPI VOID WINAPI SetLastError(_In_ DWORD dwErrCode)
WINBASEAPI _Check_return_ _Post_equals_last_error_ DWORD WINAPI GetLastError(VOID)