forked from rosa/hakurei
Compare commits
12 Commits
a451cc2dbf
...
613c95d263
| Author | SHA1 | Date | |
|---|---|---|---|
|
613c95d263
|
|||
|
d527de788c
|
|||
|
a95e779a50
|
|||
|
81a5821d5c
|
|||
|
8b38cba968
|
|||
|
9f90c2ef2a
|
|||
|
1c0fb0c897
|
|||
|
4a0250e211
|
|||
|
cbfcce2447
|
|||
|
5f0e90d196
|
|||
|
6db1730cf4
|
|||
|
3d39d19b36
|
@@ -249,16 +249,22 @@ export class StreamReporter implements Reporter {
|
|||||||
case "success":
|
case "success":
|
||||||
this.#successes.push({ path, ...result });
|
this.#successes.push({ path, ...result });
|
||||||
// NOTE: emojis are used instead of colored Unicode symbols as
|
// NOTE: emojis are used instead of colored Unicode symbols as
|
||||||
// coloring isn't possible through all streams, which would make
|
// coloring isn't possible through all streams and there detecting
|
||||||
// this terminal-specific, and even in terminals and emulators
|
// if colors should be used is very difficult¹. Furthermore,
|
||||||
// thereof, it's very tedious to correctly detect whether one should
|
// ensuring reasonable contrast is retained on every possible theme
|
||||||
// use colors (https://no-color.org, https://bixense.com/clicolors,
|
// is difficult, with reverse video often being the only way, and
|
||||||
// https://force-color.org), ensure reasonable contrast is retained
|
// the Unicode characters might be too small to be immediately
|
||||||
// on every possible theme (using reverse video is often the only
|
// noticeable. Emojis have an upper hand in that they're more common
|
||||||
// way), and be immediately noticeable. Emojis have an upper hand in
|
// than obscure Unicode characters—which also means you're more
|
||||||
// that they're more common than obscure Unicode characters—which
|
// likely to have an emoji font but not a font with those
|
||||||
// also means you're more likely to have an emoji font but not
|
// symbols—and that they're double-width.
|
||||||
// a font with those symbols—and that they're double-width.
|
//
|
||||||
|
// ¹This necessitates checking if the stream is a TTY, checking if
|
||||||
|
// $TERM is `dumb` when connected to a TTY, checking
|
||||||
|
// https://no-color.org, https://bixense.com/clicolors, and
|
||||||
|
// https://force-color.org, checking if setting the
|
||||||
|
// ENABLE_VIRTUAL_TERMINAL_PROCESSING bit on the TTY works when on
|
||||||
|
// on Windows, and doing something similar for Cygwin
|
||||||
if (this.verbose) this.stream.writeln(`✅️ ${pathStr}`);
|
if (this.verbose) this.stream.writeln(`✅️ ${pathStr}`);
|
||||||
break;
|
break;
|
||||||
case "failure":
|
case "failure":
|
||||||
|
|||||||
Reference in New Issue
Block a user