You are not logged in.
Hi
I use urxvt terminal emulator. And I try to configure tmux with 256 colors and corect looking vim. I tried many methods from forums and wikis and find that when I start tmux with this line:
TERM=screen-256color-bce tmux -2
it works with fine colors but keys F1 - F4 doesn't work in any app.
How to fix this, or are there any another methods to configure tmux?
Last edited by kemmotar (2012-10-17 22:02:54)
Offline
Don't set the TERM variable. Ever.
You can, and should, set the default-terminal in your tmux.conf.
Try the following:
set -g default-terminal rxvt-unicode-256color
# or
#set -g default-terminal screen-256color-bce"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Please remember to mark the thread as solved.
Offline
As a matter of fact,
default-terminal terminal
Set the default terminal for new windows created in this ses‐
sion - the default value of the TERM environment variable. For
tmux to work correctly, this must be set to ‘screen’ or a de‐
rivative of it.
If set otherwise, tmux can behave odd both with various ncurses and slang apps (like MC for that matter).
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
Ok, I setup
set -g default-terminal rxvt-unicode-256colorand this work like a charm on my netbook and arch powered server. But when I connect to ubuntu powered server, I lost 256 colors in vim. I try set
set -g default-terminal screen-256colorbut this makes font in vim bold. And yes, I use tmux -2. And I try different colorschemes in vim.
Offline
Ok, I setup
set -g default-terminal rxvt-unicode-256color
This is wrong.
I try set
set -g default-terminal screen-256colorbut this makes font in vim bold. And yes, I use tmux -2. And I try different colorschemes in vim.
This suggests that something else is wrong with your setup; probably term-related. The quote bohoomil posted is where you should start from; ie a screen setting in .tmux.conf.
Then compare your various $TERM values in and outside tmux across your machines; check your shell initialization files for term settings and work with a single, vim 256 colour scheme until your nail down the discrepanc{y,ies}.
Offline
Offline