forked from rosa/hakurei
Compare commits
12 Commits
613c95d263
...
a451cc2dbf
| Author | SHA1 | Date | |
|---|---|---|---|
|
a451cc2dbf
|
|||
|
4065d96d38
|
|||
|
92f2111aed
|
|||
|
48e5de9d86
|
|||
|
3a50868e12
|
|||
|
beeba66efe
|
|||
|
81be70f921
|
|||
|
7ede68293e
|
|||
|
f28265062d
|
|||
|
178748dd75
|
|||
|
4d6a30dba1
|
|||
|
4c9043cb0c
|
@@ -249,22 +249,16 @@ 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 and there detecting
|
// coloring isn't possible through all streams, which would make
|
||||||
// if colors should be used is very difficult¹. Furthermore,
|
// this terminal-specific, and even in terminals and emulators
|
||||||
// ensuring reasonable contrast is retained on every possible theme
|
// thereof, it's very tedious to correctly detect whether one should
|
||||||
// is difficult, with reverse video often being the only way, and
|
// use colors (https://no-color.org, https://bixense.com/clicolors,
|
||||||
// the Unicode characters might be too small to be immediately
|
// https://force-color.org), ensure reasonable contrast is retained
|
||||||
// noticeable. Emojis have an upper hand in that they're more common
|
// on every possible theme (using reverse video is often the only
|
||||||
// than obscure Unicode characters—which also means you're more
|
// way), and be immediately noticeable. Emojis have an upper hand in
|
||||||
// likely to have an emoji font but not a font with those
|
// that they're more common than obscure Unicode characters—which
|
||||||
// symbols—and that they're double-width.
|
// also means you're more likely to have an emoji font but not
|
||||||
//
|
// 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