Re: How to differentiate tmux environment between Console and X

2011-06-15 Thread alphachi
Sorry my express... This is my .cshrc: ... if ($TERM == "cons25") then set prompt = "%m:%l=%// > " else set prompt = "%{\e]0;%m:%l=%//\a%}> " endif ... Under the console, the screen is: ... ... ... hostname:tty=path > ... Under xterm, the screen is: ... ... ..

Re: Color display looks different between tmux and normal console

2011-06-15 Thread Nicholas Marriott
Can you try tmux 1.4? On Wed, Jun 15, 2011 at 02:34:26PM +0800, Floyd Cheng wrote: >Thank you for your response.* >tmux version is 1.3.2. TERM outside is xterm, TERM inside is set >to*screen-256color.* >I use XShell in Windows 7 to login my host Debian 6 via ssh. >Best regards

Re: How to differentiate tmux environment between Console and X

2011-06-15 Thread Nicholas Marriott
You can probably look at tmux lsc and see if you are on a pty or /dev/console or whatever. On Wed, Jun 15, 2011 at 03:15:32PM +0800, alphachi wrote: >Sorry my express... > >This is my .cshrc: >... >** if ($TERM == "cons25") then >** set prompt = "%m:%l

Re: Color display looks different between tmux and normal console

2011-06-15 Thread Floyd Cheng
I installed the version1.4, unfortunately, there is the same result. My config file attached, and maybe it helps you to know what is the wrong thing i did. Thank you. On Wed, Jun 15, 2011 at 3:27 PM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > Can you try tmux 1.4? > > > On Wed, Jun

Compiling with readline support on Ubuntu

2011-06-15 Thread Max Cantor
Hi all. I am running Ubuntu 10.04 LTS (Lucid). The official repo package has a very old version of tmux, so I am compiling from source. I have the readline development headers installed (libreadline-dev package), but when I use my freshly compiled tmux, I do not have readline support in the tmux

Re: Compiling with readline support on Ubuntu

2011-06-15 Thread Nicholas Marriott
tmux does not use readline. On Wed, Jun 15, 2011 at 06:04:51PM -0400, Max Cantor wrote: >Hi all. *I am running Ubuntu 10.04 LTS (Lucid). *The official repo package >has a very old version of tmux, so I am compiling from source. *I have the >readline development headers installed (libr

Re: Compiling with readline support on Ubuntu

2011-06-15 Thread Nicholas Marriott
C-p and C-u are implemented and work for me so either you are using a tmux that is still too old or you are using vi key bindings because EDITOR or VISUAL contains vi, try set -g status-keys emacs (also mode-keys as well probably). On Wed, Jun 15, 2011 at 11:10:27PM +0100, Nicholas Marriott wrote

Re: Color display looks different between tmux and normal console

2011-06-15 Thread Floyd Cheng
hi, Nicholas I try to convert TERM inside tmux from screen-256color to xterm, the color looks well. Is there any other conflict while use xterm inside tmux? Thanks a lot. Best regards Floyd On Wed, Jun 15, 2011 at 3:27 PM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > Can you try t