On Fri, Mar 25, 2011 at 2:29 AM, Paul Grove <paul.a.gr...@gmail.com> wrote:
> Kevin,
>
> According to the tmux man page, TERM must be set to screen.

You have misunderstood. tmux is a terminal which must be identified as
screen. gnome-terminal is a terminal which must also be identified by
TERM, but "screen" is incorrect for gnome-terminal. tmux can't possibly
dictate how the underlying terminal has to be identified -- on the
contrary, it depends on that terminal being identified correctly.

The TERM variable tells terminal applications what terminal description
they should use -- effectively, what terminal they are running under.
They need this information to determine how to do things like position
the cursor, clear the screen, set colors, and interpret keycodes. As a
terminal application, tmux needs you to correctly tell it what terminal
it is running under. It's applications running under *tmux* that need
TERM to be set to screen, because the screen terminal description
describes the codes tmux itself uses to clear its screen, etc.

In short, TERM will be different outside and inside of tmux.

You really can't expect any terminal application to work correctly as
long as TERM is wrong.

-Kevin

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to