You are not logged in.
Pages: 1
Saludos,
I'm new in ARCH, having a great time customizing almost everything. I'm trying to get the most of my netbook and this distro makes it easy and lets me control everything I can think of.
While learning the arch-way I decided to make everything as lightweight as posible, so I started using screen, ranger, mp3blaster, using vim with tex syntax...in short I'm trying to stay in the terminal as much as I can.
A week ago I tryed tmux, similar to screen but more customizable, at least easier to, and over all it can split vertically, that option alone made me love it more than screen.
The problem that I'm having is that every time that I start it it doesn't get screen-256color as $TERM, even though I have 'set-option -g default-terminal screen-256color' in my ~/.tmux.conf.
I have tryed everything I could think to solve this, instead of using 'set-option', just 'set', using '"screen-256color"',creating a /etc/tmux.conf with those options...But anyway, every time I start tmux 'echo $TERM' says 'xterm-xfree86', the only way to get my $TERM to be screen-256color is to set it manually with TERM=screen-256color.
Can anybody help me a little bit? where does the default $TERM get's set?
Every shell that I use starts with the same $TERM, doesn't matter if I use rxvt. lilyterm, xterm, gnome-terminal, all are set to start with xterm-xfree86 with 8 colors...
Have searched in the forums and the man pages of tmux, but did't help
Suerte!
Offline
The tmux FAQ says
set -g default-terminal "screen-256color"
Note that some platforms do not support "screen-256color" ("infocmp
screen-256color" will return an error) - in this case see the next entry in
this FAQ.tmux attempts to detect a 256 colour terminal both by looking at the colors
terminfo entry and by looking for the string "256col" in the TERM environment
variable.If both these methods fail, the -2 flag may be passed to tmux when attaching
to a session to indicate the terminal supports 256 colours.
Offline
I had the same problem. I added this to me .zshrc and it worked:
[ "$TERM" = screen ] && export TERM=rxvt-256color
Thanks to someone on IRC for that one!
Offline
Well just for the completeness…
I'm using the following in my .bashrc to get an orange hostname:
function EXT_COLOR () { echo -ne "\[\033[38;5;$1m\]"; }and in my PS1…
`EXT_COLOR 172`.
I had problems too, to get the orange hostname back, but this was solved when I set
set -g default-terminal "rxvt-256color"in my .tmux.conf.
Dunno if this is obvious, but I wanted to share! ![]()
Edit: @ewaller: sorry :-)
Last edited by domac (2012-08-09 15:50:28)
domac [ git ]
Offline
Moderator: This is a bit of a necro-post. Your post is, however relevant -- and it is "for completeness" , so I will leave this thread be ![]()
Be careful of 2 year old posts; we all get caught sometimes
If this thread springs to life and drifts into new territory, we will close it and request that a new thread be opened. We do this to make it easier to search for contemporary issues.
Thanks
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Pages: 1