.zsh appearance faulty in apple terminal but not in iterm2 - terminal

For the last year, I've been using iTerm2 instead of the built-in terminal for my Macbook. I just started using VSCode and noticed that my terminal is really hard to read because it's not properly viewing fonts, colors, and characters. Here is how my apple terminal looks. How can make my apple terminal look coherent and pretty without messing up how my iTerm2 shell looks like? Thanks!

Related

Bug highlighting random characters on VScode Terminal?

I suddenly got what appears to be some random highlights on my terminal in VScode. Whatever I try to write it just gets hidden by the yellow boxes you see in the screenshot. It even keeps the highlights in place even if I delete the characters. Has anyone experienced something similar?
I just found out that turning off Terminal > Integrated: GPU Acceleration in my settings eliminates the problem. I'm using the latest vscode 1.70.2 on a 12years old MacBook Pro running Mac OS 10.13.6 and vscode might be starting to get a bit glitchy with this setup.

Big Sur zsh Finder issue

Can you help me to figure out something?
Each time I launch Terminal app my Finder windows close and relaunch again.
This is very annoying to me and I didn't have this before (when was using bash).

Whenever I open Hyper on Mac, my screen flashes black for a few seconds

I try to use Hyper on my Mac, and it used to work fine. For the last few weeks, my screen would flash black whenever I opened Hyper on my Mac (but not for regular terminal). Is this because I messed up some files? I recently got this Mac so I'm not exactly sure why this has been happening.
I saved my settings and reinstalled it. Now it works fine. Must've been a problem since electron was not properly working either.

Terminal.app On macOS Doesn't Preserve Preferences

I used to work with mac os a while ago an now I am coming back. What I noticed is regular preferences update doesn't work for at least Terminal.app. This happens on any High Sierra.
Start Terminal.app
Go to your Preferences either through a menu or Cmd-,.
Change something, e.g. use different profile as a default.
Quit application
Start Terminal.app again. Your preferences changes are reset.
What's going on ? Looks like a bug to me, perhaps I have missed something since Lion release.
It could be that your preferences are "stuck." Preferences in macOS has been broken for awhile now and can sometimes get into a state where the app can't read changes made, or changes never get applied.
Try deleting your ~/Library/Preferences/com.apple.Terminal.plist file along with any com.apple.Terminal.plist.lockfile and com.apple.Terminal.plist.<RANDOM> companion files you find. Restart your system and try it again.
Another way is to look at the ~/Library/Preferences/com.apple.Terminal.plist permissions. You may see something like this
Now if you run something like
sudo chown evgeniy.sharapov:staff ~/Library/Preferences/com.apple.Terminal.plist
And restart the Terminal.app, it seems to go back to normal and able to save changes in Preferences.

Mac OS X vim colors mangled

Here's my setup
Mac OS X 10.6
VIM (default version that comes with OSX 10.6)
rails.vim (installed in .vim/autoload)
ir_black.vim (installed in .vim/colors)
i have "colorscheme ir_black" and "syn on" in ~/.vimrc
Now when I go into terminal and edit a ruby file with vim my colors are messed up. There are only a few colors showing up and some text is even blinking. I'm wondering if there's a conflict between rails.vim syntax highlighting and the ir_black color scheme? Can anyone help me fix this? I would like to use the ir_black color scheme.
The Mac OSX Terminal.app in Snow Leopard does not support 256 colors, which is required for the ir_black theme (this is the theme I use).
Download and try something like iTerm.app (http://iterm.sourceforge.net/), and you shouldn't have a problem with colors.
Or you could use MacVim (http://code.google.com/p/macvim/)
Edit: As of OSX 10.7 Lion, the built in Terminal.app now supports 256 colors. See the comment below by Chris Page for how to achieve this.
I've been using a nearly identical setup, except for vim, which I grab from Macports. A few years ago I found ir_black and loved it. I now use it for all vim sessions, Terminal.app, and TextMate. Getting it to work with Leopard, and then Snow Leopard was a tad hokey. But things have improved. Follow the instructions here, Making Terminal.app look great in Snow Leopard.
As mentioned by others, ir_black requires 256 colors, which is not supported by Terminal on 10.6.x and earlier.
As of Mac OS X Lion 10.7, Terminal now supports 256 colors and the default $TERM value is xterm-256colors. ir_black should work fine for you if you upgrade to Lion.
on testing which colors can be displayed in your terminal of choice:
i just found this perl script on vim.org which dumps a list of 256 colors your terminal could possibly display...
http://www.vim.org/scripts/script.php?script_id=1349
I have been using iTerm and was shocked to find out Terminal.app doesn't support 256 colors! I recommend Bryan's answer.
However, if you ever get in a bind like this, you can change $TERM to vt100 and vim won't try to use colors. In bash (the default MacOSX shell) you set this with:
export TERM='vt100'
I use ir_black in Terminal.app but in 16 color mode, and it looks great. If you really prefer 256 color, I recommend iTerm2. The settings allow you to have the terminal report itself as "xterm-256" which is what's needed to use 256 colors in Vim.
Check this website for the procedure:
http://kevin.colyar.net/2011/01/pretty-vim-color-schemes-in-iterm2
There is a ir_black-based Vim theme called tir_black which is better suited for 256 colors:
http://www.vim.org/scripts/script.php?script_id=2777
Looks awesome!
iTerm2 also has loads of nifty features.
I hope this helps.
I had the same issue with iTerm and solved it by going to Settings > Profile > Terminal > Report Terminal Type and setting it to xterm-256color.

Resources