Page 1 of 2
Strange terminal behavior when using zsh [FIXED]
Posted: Thu Jul 14, 2022 3:38 pm
by vxm5091
Hello, I recently started using Nimble Commander and I was drawn to it in large part because of its smooth interoperability with the terminal. I also use iTerm2 with zsh. After setting the NC shell to zsh, I get this strange behavior when using ls commands -- most rows are highlighted and the text is blinking at the same rate as the cursor. The only fix I see at the moment is to switch back to a bash shell. Anything I can do to make the terminal more consistent with iTerm2 and keep zsh?
Re: Strange terminal behavior when using zsh
Posted: Tue Jul 19, 2022 9:14 pm
by mike
Hi, could you provide any instructions on how to reproduce the issue?
Re: Strange terminal behavior when using zsh
Posted: Tue Jul 26, 2022 3:41 am
by vxm5091
Thanks for the response Mike, I can figure out a repro though that might be a bit tough since I have Oh my Zsh and Powerlevel10k customizations as well.
This might be a helpful datapoint -- when running
, it seems like the terminal doesn't have any permissions to any of the files (see screenshot), regardless of the folder I'm in. If i run it with
, the strange blinking goes away. So it seems to be related to permissions, and I'm still having this issue in admin mode. Is there any other setting I can tweak on the permission front?
Re: Strange terminal behavior when using zsh
Posted: Sat Jul 30, 2022 9:33 pm
by mike
That's a really weird behaviour, I don't think it's actually about permissions. What does 'pwd' say?
Re: Strange terminal behavior when using zsh
Posted: Fri Aug 19, 2022 5:17 pm
by vxm5091
pwd shows the folder path as expected.
Re: Strange terminal behavior when using zsh
Posted: Sat Aug 20, 2022 8:28 pm
by mike
Well, no ideas at this stage...
If you could reproduce the issue in a sterile environment and provide instructions on how to replicate it - I'd be glad to look it.
Re: Strange terminal behavior when using zsh
Posted: Wed Sep 21, 2022 4:10 pm
by xxyxxyxyx1
I have the same problem of blinking text when listing files in the terminal using `exa`, and I have aliased `ls` to `exa with many flags`.
I do not get blinking when I use the actual`ls` command that ships with macOS:
`/bin/ls -l --color=always`
I also do not get blinking if I turn off the coloring for exa with `exa --color=never`.
So, at least for me, the problem is that the NC terminal cannot handle exa coloring. According to the exa website "it's designed for modern, 256-colour terminals, and it’s not shy about it!". NC also blinks when I try anything with `lsd`, another modern ls replacement.
It is an unfortunate limitation that the NC terminal TERM is `xterm-16color`. The built-in Terminal application upgraded to xterm-256color in 2010.
Re: Strange terminal behavior when using zsh
Posted: Sat Oct 01, 2022 12:49 pm
by mike
Ah, that makes sense, thanks.
Yes, NC's terminal emulator is currently limited to 16 colours and doesn't try to parse the xtem-256color input, likely that causes the issue.
To confirm that it's possible to start NC from another terminal and enable VT100 debug via Alt-Click at Help->Print VT100 commands.
It will then print the terminal commands flow it "sees".
Re: Strange terminal behavior when using zsh
Posted: Mon Dec 26, 2022 11:41 pm
by mike
Getting there:
- Screenshot 2022-12-26 at 23.39.48.png (204.42 KiB) Viewed 12247 times
Re: Strange terminal behavior when using zsh
Posted: Tue Feb 21, 2023 8:37 am
by Vitalii
Have the same issue. Just opened terminal via View->Show Terminal. Did nothing. The line is blinking.
Also all my settings is not working. Vim is different, colors is different. Is it possible to load my preferences by default?