Strange terminal behavior when using zsh [FIXED]
Strange terminal behavior when using zsh [FIXED]
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?
- Attachments
-
- Screen Shot 2022-07-14 at 11.30.45 AM.png (166.55 KiB) Viewed 17346 times
Re: Strange terminal behavior when using zsh
Hi, could you provide any instructions on how to reproduce the issue?
Re: Strange terminal behavior when using zsh
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?
This might be a helpful datapoint -- when running
Code: Select all
ls
Code: Select all
sudo
- Attachments
-
- Screen Shot 2022-07-25 at 11.35.13 PM.png (4.7 KiB) Viewed 17268 times
Re: Strange terminal behavior when using zsh
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
pwd shows the folder path as expected.
Re: Strange terminal behavior when using zsh
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.
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.
-
- Posts: 10
- Joined: Sun Feb 24, 2019 5:28 pm
Re: Strange terminal behavior when using zsh
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.
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
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".
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
Getting there:
Re: Strange terminal behavior when using zsh
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?
Also all my settings is not working. Vim is different, colors is different. Is it possible to load my preferences by default?