-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird output from colored output of utility #20
Comments
Interesting... I think this is related to #19... If I recall correctly, I made a fix locally for that issue... I will check Thank you for pointing this out anyway! 👌🏻 |
@juarezr Try running that command passing to Tell me if this improves things |
@juarezr This issue should be fixed with the latest update, try it when you can 😃 This was caused by tab characters intermixed with spaces in the input string (by default it used a single space as input separator, whereas now uses a regex). Please let me know if it fixes on your end too |
Downloaded the latest version from main branch and got the following results: tput cols; eza --recurse --level=2 --classify --time-style=iso --no-user --no-permissions --no-time --group-directories-first --long --color=never --grid --width 128 --tree | column
163
- ./ - ├── man/ - ├── tests/ 1.7k ├── deb.asc
- ├── benches/ 12k │ ├── eza.1.md - │ ├── cmd/ 12k ├── deny.toml
369 │ └── my_benchmark.rs 2.5k │ ├── eza_colors-explanation.5.md - │ ├── gen/ 2.5k ├── eza--grid.txt
- ├── completions/ 7.3k │ └── eza_colors.5.md - │ ├── itest/ 7.8k ├── flake.lock
- │ ├── bash/ - ├── snap/ - │ ├── ptests/ 9.0k ├── flake.nix
- │ ├── fish/ 837 │ └── snapcraft.yaml 691 │ └── cli_tests.rs 6.2k ├── INSTALL.md
- │ ├── nush/ - ├── src/ 3.9k ├── build.rs 7.1k ├── Justfile
- │ └── zsh/ - │ ├── fs/ 43k ├── Cargo.lock 1.1k ├── LICENCE
- ├── devtools/ - │ ├── info/ 3.2k ├── Cargo.toml 2.6k ├── powertest.yaml
5.6k │ ├── deb-package.sh* - │ ├── options/ 29k ├── CHANGELOG.md 7.8k ├── README.md
2.5k │ ├── dir-generator.sh - │ ├── output/ 2.5k ├── cliff.toml 146 ├── rust-toolchain.toml
861 │ └── generate-trycmd-test.sh* - │ ├── theme/ 5.5k ├── CODE_OF_CONDUCT.md 34 ├── rustfmt.toml
- ├── docs/ 192 │ ├── lib.rs 2.0k ├── column.sh* 505 ├── SECURITY.md
- │ ├── images/ 1.7k │ ├── logger.rs 361 ├── columnt.awk 586 └── treefmt.nix
- │ └── tapes/ 17k │ └── main.rs 8.1k ├── CONTRIBUTING.md tput cols; eza --recurse --level=2 --classify --time-style=iso --no-user --no-permissions --no-time --group-directories-first --long --color=never --grid --width 128 --tree | column -s $"\t"
163
- ./ - ├── man/ - ├── tests/ 1.7k ├── deb.asc
- ├── benches/ 12k │ ├── eza.1.md - │ ├── cmd/ 12k ├── deny.toml
369 │ └── my_benchmark.rs 2.5k │ ├── eza_colors-explanation.5.md - │ ├── gen/ 2.5k ├── eza--grid.txt
- ├── completions/ 7.3k │ └── eza_colors.5.md - │ ├── itest/ 7.8k ├── flake.lock
- │ ├── bash/ - ├── snap/ - │ ├── ptests/ 9.0k ├── flake.nix
- │ ├── fish/ 837 │ └── snapcraft.yaml 691 │ └── cli_tests.rs 6.2k ├── INSTALL.md
- │ ├── nush/ - ├── src/ 3.9k ├── build.rs 7.1k ├── Justfile
- │ └── zsh/ - │ ├── fs/ 43k ├── Cargo.lock 1.1k ├── LICENCE
- ├── devtools/ - │ ├── info/ 3.2k ├── Cargo.toml 2.6k ├── powertest.yaml
5.6k │ ├── deb-package.sh* - │ ├── options/ 29k ├── CHANGELOG.md 7.8k ├── README.md
2.5k │ ├── dir-generator.sh - │ ├── output/ 2.5k ├── cliff.toml 146 ├── rust-toolchain.toml
861 │ └── generate-trycmd-test.sh* - │ ├── theme/ 5.5k ├── CODE_OF_CONDUCT.md 34 ├── rustfmt.toml
- ├── docs/ 192 │ ├── lib.rs 2.0k ├── column.sh* 505 ├── SECURITY.md
- │ ├── images/ 1.7k │ ├── logger.rs 361 ├── columnt.awk 586 └── treefmt.nix
- │ └── tapes/ 17k │ └── main.rs 8.1k ├── CONTRIBUTING.md tput cols; eza --recurse --level=2 --classify --time-style=iso --no-user --no-permissions --no-time --group-directories-first --long --color=never --grid --width 128 --tree | column_ansi
163
- ./
- ├── benches/
369 │ └── my_benchmark.rs
- ├── completions/
- │ ├── bash/
- │ ├── fish/
- │ ├── nush/
- │ └── zsh/
- ├── devtools/
5.6k │ ├── deb-package.sh*
2.5k │ ├── dir-generator.sh
861 │ └── generate-trycmd-test.sh*
- ├── docs/
- │ ├── images/
- │ └── tapes/
- ├── man/
12k │ ├── eza.1.md
2.5k │ ├── eza_colors-explanation.5.md
7.3k │ └── eza_colors.5.md
- ├── snap/
837 │ └── snapcraft.yaml
- ├── src/
- │ ├── fs/
- │ ├── info/
- │ ├── options/
- │ ├── output/
- │ ├── theme/
192 │ ├── lib.rs
1.7k │ ├── logger.rs
17k │ └── main.rs
- ├── tests/
- │ ├── cmd/
- │ ├── gen/
- │ ├── itest/
- │ ├── ptests/
691 │ └── cli_tests.rs
3.9k ├── build.rs
43k ├── Cargo.lock
3.2k ├── Cargo.toml
29k ├── CHANGELOG.md
2.5k ├── cliff.toml
5.5k ├── CODE_OF_CONDUCT.md
2.0k ├── column.sh*
361 ├── columnt.awk
8.1k ├── CONTRIBUTING.md
1.7k ├── deb.asc
12k ├── deny.toml
2.5k ├── eza--grid.txt
7.8k ├── flake.lock
9.0k ├── flake.nix
6.2k ├── INSTALL.md
7.1k ├── Justfile
1.1k ├── LICENCE
2.6k ├── powertest.yaml
7.8k ├── README.md
146 ├── rust-toolchain.toml
34 ├── rustfmt.toml
505 ├── SECURITY.md
586 └── treefmt.nix tput cols; eza --recurse --level=2 --classify --time-style=iso --no-user --no-permissions --no-time --group-directories-first --long --color=never --grid --width 128 --tree | column_ansi -s $"\t"
163
- ./
- ├── benches/
369 │ └── my_benchmark.rs
- ├── completions/
- │ ├── bash/
- │ ├── fish/
- │ ├── nush/
- │ └── zsh/
- ├── devtools/
5.6k │ ├── deb-package.sh*
2.5k │ ├── dir-generator.sh
861 │ └── generate-trycmd-test.sh*
- ├── docs/
- │ ├── images/
- │ └── tapes/
- ├── man/
12k │ ├── eza.1.md
2.5k │ ├── eza_colors-explanation.5.md
7.3k │ └── eza_colors.5.md
- ├── snap/
837 │ └── snapcraft.yaml
- ├── src/
- │ ├── fs/
- │ ├── info/
- │ ├── options/
- │ ├── output/
- │ ├── theme/
192 │ ├── lib.rs
1.7k │ ├── logger.rs
17k │ └── main.rs
- ├── tests/
- │ ├── cmd/
- │ ├── gen/
- │ ├── itest/
- │ ├── ptests/
691 │ └── cli_tests.rs
3.9k ├── build.rs
43k ├── Cargo.lock
3.2k ├── Cargo.toml
29k ├── CHANGELOG.md
2.5k ├── cliff.toml
5.5k ├── CODE_OF_CONDUCT.md
2.0k ├── column.sh*
361 ├── columnt.awk
8.1k ├── CONTRIBUTING.md
1.7k ├── deb.asc
12k ├── deny.toml
2.5k ├── eza--grid.txt
7.8k ├── flake.lock
9.0k ├── flake.nix
6.2k ├── INSTALL.md
7.1k ├── Justfile
1.1k ├── LICENCE
2.6k ├── powertest.yaml
7.8k ├── README.md
146 ├── rust-toolchain.toml
34 ├── rustfmt.toml
505 ├── SECURITY.md
586 └── treefmt.nix tput cols; eza --recurse --level=2 --classify --time-style=iso --no-user --no-permissions --no-time --group-directories-first --long --color=always --grid --width 128 --tree | column_ansi
163
- ./
- ├── benches/
369 │ └── my_benchmark.rs
- ├── completions/
- │ ├── bash/
- │ ├── fish/
- │ ├── nush/
- │ └── zsh/
- ├── devtools/
5.6k │ ├── deb-package.sh*
2.5k │ ├── dir-generator.sh
861 │ └── generate-trycmd-test.sh*
- ├── docs/
- │ ├── images/
- │ └── tapes/
- ├── man/
12k │ ├── eza.1.md
2.5k │ ├── eza_colors-explanation.5.md
7.3k │ └── eza_colors.5.md
- ├── snap/
837 │ └── snapcraft.yaml
- ├── src/
- │ ├── fs/
- │ ├── info/
- │ ├── options/
- │ ├── output/
- │ ├── theme/
192 │ ├── lib.rs
1.7k │ ├── logger.rs
17k │ └── main.rs
- ├── tests/
- │ ├── cmd/
- │ ├── gen/
- │ ├── itest/
- │ ├── ptests/
691 │ └── cli_tests.rs
3.9k ├── build.rs
43k ├── Cargo.lock
3.2k ├── Cargo.toml
29k ├── CHANGELOG.md
2.5k ├── cliff.toml
5.5k ├── CODE_OF_CONDUCT.md
2.0k ├── column.sh*
361 ├── columnt.awk
8.1k ├── CONTRIBUTING.md
1.7k ├── deb.asc
12k ├── deny.toml
2.5k ├── eza--grid.txt
7.8k ├── flake.lock
9.0k ├── flake.nix
6.2k ├── INSTALL.md
7.1k ├── Justfile
1.1k ├── LICENCE
2.6k ├── powertest.yaml
7.8k ├── README.md
146 ├── rust-toolchain.toml
34 ├── rustfmt.toml
505 ├── SECURITY.md
586 └── treefmt.nix |
Thank you @juarezr for the followup 😄 Oh sorry! I just now noticed you're not using The command |
I just checked and I forgot to mention this in the README. 🤦🏻♂️ Also, the help is not clear too, since it allows omitting the Sorry for the misunderstanding! 😳 |
Starting with the next version v2.40 of util-linux / column will handle text containing Fe Escape sequences from ANSI escape code properly. With util-linux/util-linux#2767, programs that output text with ANSI sequences will be handled correctly. |
Weird output from colored output of utility
Steps to reproduce
Using the eza utility to print with the
util-linux
column
command works (with no colors only):But when using
column_ansi
it looks weird:The text was updated successfully, but these errors were encountered: