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=%// > "
> ****** else
> ********************** set prompt = "%{\e]0;%m:%l=%//\a%}> "
> ****** endif
> ...
>
> Under the console, the screen is:
> ...
> ...
> ...
> hostname:tty=path >
> ...
>
> Under xterm, the screen is:
> ...
> ...
> ...
> >
> ...
> and the xterm window title is hostname:tty=path.
>
> For tmux, how can I do the same thing?
>
> To tmux under Console, the screen is:
> ...
> ...
> ...
> hostname:tty=path >
> ...
>
> To tmux Under X, the screen is:
> ...
> ...
> ...
> >
> ...
> and the tmux window title is hostname:tty=path.
>
> the $TERM is still screen, whether console or X. I can't use it for my
> point.
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users