mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +00:00
Merge pull request #6923 from sylvestre/more-terms
uucore: add alacritty to the list of terminals that support colors
This commit is contained in:
commit
18496735da
3 changed files with 5 additions and 1 deletions
|
@ -15,4 +15,4 @@ Run the tests:
|
||||||
cargo test --features "dircolors" --no-default-features
|
cargo test --features "dircolors" --no-default-features
|
||||||
```
|
```
|
||||||
|
|
||||||
Edit `/PATH_TO_COREUTILS/src/uu/dircolors/src/colors.rs` until the tests pass.
|
Edit `/PATH_TO_COREUTILS/src/uu/dircolors/src/dircolors.rs` until the tests pass.
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
/// restrict following config to systems with matching environment variables.
|
/// restrict following config to systems with matching environment variables.
|
||||||
pub static TERMS: &[&str] = &[
|
pub static TERMS: &[&str] = &[
|
||||||
"Eterm",
|
"Eterm",
|
||||||
|
"alacritty*",
|
||||||
"ansi",
|
"ansi",
|
||||||
"*color*",
|
"*color*",
|
||||||
"con[0-9]*x[0-9]*",
|
"con[0-9]*x[0-9]*",
|
||||||
|
@ -21,6 +22,7 @@ pub static TERMS: &[&str] = &[
|
||||||
"cygwin",
|
"cygwin",
|
||||||
"*direct*",
|
"*direct*",
|
||||||
"dtterm",
|
"dtterm",
|
||||||
|
"foot",
|
||||||
"gnome",
|
"gnome",
|
||||||
"hurd",
|
"hurd",
|
||||||
"jfbterm",
|
"jfbterm",
|
||||||
|
|
2
tests/fixtures/dircolors/internal.expected
vendored
2
tests/fixtures/dircolors/internal.expected
vendored
|
@ -7,6 +7,7 @@
|
||||||
# restrict following config to systems with matching environment variables.
|
# restrict following config to systems with matching environment variables.
|
||||||
COLORTERM ?*
|
COLORTERM ?*
|
||||||
TERM Eterm
|
TERM Eterm
|
||||||
|
TERM alacritty*
|
||||||
TERM ansi
|
TERM ansi
|
||||||
TERM *color*
|
TERM *color*
|
||||||
TERM con[0-9]*x[0-9]*
|
TERM con[0-9]*x[0-9]*
|
||||||
|
@ -15,6 +16,7 @@ TERM console
|
||||||
TERM cygwin
|
TERM cygwin
|
||||||
TERM *direct*
|
TERM *direct*
|
||||||
TERM dtterm
|
TERM dtterm
|
||||||
|
TERM foot
|
||||||
TERM gnome
|
TERM gnome
|
||||||
TERM hurd
|
TERM hurd
|
||||||
TERM jfbterm
|
TERM jfbterm
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue