garabik / grc

generic colouriser
http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
Other
1.9k stars 162 forks source link

`mtr` shows no interactive output anymore when run as `grc mtr` (i.e. via alias) #192

Open xtaran opened 3 years ago

xtaran commented 3 years ago

mtr is by default in an interactive TUI application which no more works when run with the grc wrapper, e.g. via /etc/profile.d/grc.sh or /etc/grc.zsh.

The only way, where the grc wrapper for mtr seems to makes sense is for the mtr -r option to colourise the final report.

So I suggest to not colourise mtr via aliases by default. Or to parse its options and only call grcat if there's a -r present on the commandline.

Happened with version 1.13.1-1 in Debian Unstable.

bretello commented 2 years ago

Can confirm this is happening

susca commented 1 year ago

I wrote a custom conf for apt (debian package tool), and I stumbled across the same issue. When user input is required, the line is not printed at all. Would be nice to have a solution for this.