Under Terminal > Preferences... > (Profile) > Advanced, "Declare terminal as:" should be set to xterm-256color
.
This is easy with homebrew:
brew install screen
When this finishes you'll have a new binary in /usr/local/bin/screen
.
Add /usr/local/bin
to the front of your $PATH
so that your shell uses this binary, and not the one in /usr/bin
(you can confirm that it's using the correct one with which screen
). If you're using the bash, this goes into your .bash_profile
:
PATH="/usr/local/bin:$PATH"
If you're using another shell, then you probably already know where this goes. :)
I couldn't achive this goal. I run everything as you mentioned, but my terminal still shows only 16 colours. It declares
xterm-256
screen is tapped and installed via homebrew, andwhich screen
shows/usr/local/bin/screen
. Also the path is set with/usr/local/bin
at beginning.hash -r
andhash -d screen
has no effect. What have I missed?I used default mac terminal and it probably doesn't support this color range