good point, you won't have DISPLAY set in console
On Thu, Jun 16, 2011 at 07:38:20AM -0700, Randy Stauner wrote: > Do you have a `tty` command? **that may show "/dev/tty1" vs "/dev/pts/3" > which could identify it. > There may be other environment settings you could consult as well... > You could output your environment to a file under each of Console and X > and then diff them. > On Wed, Jun 15, 2011 at 12:29 AM, Nicholas Marriott > <[1]nicholas.marri...@gmail.com> wrote: > > 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. > [2]http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > tmux-users mailing list > [3]tmux-users@lists.sourceforge.net > [4]https://lists.sourceforge.net/lists/listinfo/tmux-users > > References > > Visible links > 1. mailto:nicholas.marri...@gmail.com > 2. http://p.sf.net/sfu/ephox-dev2dev > 3. mailto:tmux-users@lists.sourceforge.net > 4. https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ 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 tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users