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 11
11
#### ` dart:io `
12
12
13
13
- Added support ` HttpClientBearerCredentials ` .
14
+ - Update ` Stdout.supportsAnsiEscapes ` and ` Stdin.supportsAnsiEscapes ` to
15
+ return ` true ` for ` TERM ` containing ` tmux ` values.
14
16
15
17
#### ` dart:html `
16
18
Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ static bool TermIsKnownToSupportAnsi() {
109
109
}
110
110
111
111
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 ;
113
114
}
114
115
115
116
bool Stdin::AnsiSupported (intptr_t fd, bool * supported) {
Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ static bool TermIsKnownToSupportAnsi() {
109
109
}
110
110
111
111
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 ;
113
114
}
114
115
115
116
bool 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>> {
178
178
///
179
179
/// The ANSI color selection is generally supported.
180
180
///
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
186
186
/// Update", OS build 14393) will be detected as supporting the input of
187
187
/// ANSI escape sequences.
188
188
external bool get supportsAnsiEscapes;
You can’t perform that action at this time.
0 commit comments