mprocs icon indicating copy to clipboard operation
mprocs copied to clipboard

"mprocs ls" no color in output

Open nkh opened this issue 1 year ago • 6 comments

Hi, nice work.

"mprocs ls" output is missing colors but the output is on one line (ls | cat would be on multiple lines) so it does have a pty.

nkh avatar May 22 '23 09:05 nkh

You probably want mprocs "ls --color"?

pvolok avatar May 22 '23 11:05 pvolok

No I want to use the same commands unchanged in mprocs. Except if there's a reason why the terminal in mprocs is not like a normal terminal. I understand that it's given a pty.

vim colors show fine for example.

I did have some trouble running shell commands, any idea why?

nkh avatar May 22 '23 13:05 nkh

I think your shell (bash/zsh or other) has something in its config. Try to run your shell via mprocs: mprocs zsh. And then try to use ls inside that shell. If it shows colors, probably there is something in zsgrc/bashrc.

pvolok avatar May 23 '23 18:05 pvolok

I ran "mprocs bash" and then ls in the terminal; colors were right.

nkh avatar May 23 '23 18:05 nkh

You can try to check for alias: alias ls.

pvolok avatar May 23 '23 18:05 pvolok

the ls man page says that color is disabled by default, thus you're right

nkh avatar May 23 '23 19:05 nkh