TERM outside tells tmux the name of the terminfo database entry to use
which tells it what to send to the terminal to do various things, for
example TERM=xterm tells it that to move the cursor down it needs to
send ^[[B. This can be different for different terminals (not so much
for the basics but a lot for more complex entries, which is why the
wrong TERM often appears to work most of the time)

TERM inside is the same, except now tmux is the terminal and TERM tells
the applications (emacs, mutt, whatever) what tmux expects it to send.



On Sat, Jun 16, 2012 at 05:09:05AM -0700, Jason Timrod wrote:
> Hi,
> 
> What's the relationship between setting TERM outside and inside of tmux? 
> ?That is, what does tmux use the TERM setting for before it starts, and why 
> then does setting/changing TERM inside tmux to "screen" mean for applications?
> 
> I'm interested to know how all this works.
> 
> TIA!
> 
> Jason
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to