6#if defined(DART_HOST_OS_LINUX) || defined(DART_HOST_OS_ANDROID)
26 *
byte = (
s == 0) ? -1 :
b;
36 *enabled = ((term.c_lflag & ECHO) != 0);
49 term.c_lflag &= ~(ECHO);
61 *enabled = ((term.c_lflag & ECHONL) != 0);
72 term.c_lflag |= ECHONL;
74 term.c_lflag &= ~(ECHONL);
86 *enabled = ((term.c_lflag & ICANON) != 0);
97 term.c_lflag |= ICANON;
99 term.c_lflag &= ~(ICANON);
102 return (status == 0);
105static bool TermIsKnownToSupportAnsi() {
106 const char* term =
getenv(
"TERM");
107 if (term ==
nullptr) {
111 return strstr(term,
"xterm") !=
nullptr ||
112 strstr(term,
"screen") !=
nullptr || strstr(term,
"rxvt") !=
nullptr;
116 *supported = (isatty(fd) != 0) && TermIsKnownToSupportAnsi();
123 if ((status == 0) && ((
w.ws_col != 0) || (
w.ws_row != 0))) {
132 *supported = (isatty(fd) != 0) && TermIsKnownToSupportAnsi();
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)
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 NO_RETRY_EXPECTED(expression)
#define TEMP_FAILURE_RETRY(expression)