Skip to content
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

Conflict between colored output by a target command and viddy's colored diff #43

Open
nobuto-m opened this issue Jun 6, 2022 · 0 comments

Comments

@nobuto-m
Copy link

nobuto-m commented Jun 6, 2022

Here is an example output. When a target command has colored output (e.g. grep --color=always) and diff highlighting with viddy are enabled at the same time, a color code ([[0m[01;38;5;202m[0m[K) is visible in the terminal and it can break indents.

Every───┐┌Command───────────────────────────────────────────────────────────────────────────────────────────┐┌Time─────────[0/988]
│2s      ││ps aux | sort -R | grep --color=always [k]worker                                                  ││2022-06-06 07:16:06│
└────────┘└──────────────────────────────────────────────────────────────────────────────────────────────────┘└───────────────────┘
root         708  0.0  0.0      0     0 ?        I<   Jun05   0:02 [kworker/0:1H-kblockd[]                                         
root     1715525  0.0  0.0      0     0 ?        I    07:09   0:00 [[0m[01;38;5;202m[0m[Kkworker[0m[m[0m[K/6:10-events[]           
root     1759911  0.0  0.0      0     0 ?        I    07:14   0:00 [kworker/10:1-events[]                                          
root     1599407  0.0  0.0      0     0 ?        I    07:06   0:00 [kworker/15:3-cgroup_destroy[]                                  
root     1619560  0.1  0.0      0     0 ?        I    07:07   0:00 [kworker/0:11-events[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant