File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1111#### ` dart:io `
1212
1313- Added support ` HttpClientBearerCredentials ` .
14+ - Update ` Stdout.supportsAnsiEscapes ` and ` Stdin.supportsAnsiEscapes ` to
15+ return ` true ` for ` TERM ` containing ` tmux ` values.
1416
1517#### ` dart:html `
1618
Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ static bool TermIsKnownToSupportAnsi() {
109109 }
110110
111111 return strstr (term, " xterm" ) != nullptr ||
112- strstr (term, " screen" ) != nullptr || strstr (term, " rxvt" ) != nullptr ;
112+ strstr (term, " screen" ) != nullptr || strstr (term, " rxvt" ) != nullptr ||
113+ strstr (term, " tmux" ) != nullptr ;
113114}
114115
115116bool Stdin::AnsiSupported (intptr_t fd, bool * supported) {
Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ static bool TermIsKnownToSupportAnsi() {
109109 }
110110
111111 return strstr (term, " xterm" ) != nullptr ||
112- strstr (term, " screen" ) != nullptr || strstr (term, " rxvt" ) != nullptr ;
112+ strstr (term, " screen" ) != nullptr || strstr (term, " rxvt" ) != nullptr ||
113+ strstr (term, " tmux" ) != nullptr ;
113114}
114115
115116bool Stdin::AnsiSupported (intptr_t fd, bool * supported) {
Original file line number Diff line number Diff line change @@ -178,11 +178,11 @@ class Stdin extends _StdStream implements Stream<List<int>> {
178178 ///
179179 /// The ANSI color selection is generally supported.
180180 ///
181- /// Currently, a `TERM` environment variable containing the string `xterm`
182- /// will be taken as evidence that ANSI escape sequences are supported.
183- /// On Windows, only versions of Windows 10 after v.1511
184- /// ("TH2", OS build 10586) will be detected as supporting the output of
185- /// ANSI escape sequences, and only versions after v.1607 ("Anniversary
181+ /// Currently, a `TERM` environment variable containing the string `xterm` ,
182+ /// `screen` , `rxvt` , or `tmux` will be taken as evidence that ANSI escape
183+ /// sequences are supported. On Windows, only versions of Windows 10 after
184+ /// v.1511 ("TH2", OS build 10586) will be detected as supporting the output
185+ /// of ANSI escape sequences, and only versions after v.1607 ("Anniversary
186186 /// Update", OS build 14393) will be detected as supporting the input of
187187 /// ANSI escape sequences.
188188 external bool get supportsAnsiEscapes;
You can’t perform that action at this time.
0 commit comments