[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Script knowing if in screen / screen window correponding to tty
From: |
Sami Samhuri |
Subject: |
Re: Script knowing if in screen / screen window correponding to tty |
Date: |
Sun, 11 Jul 2004 13:43:36 -0700 |
User-agent: |
Mutt/1.5.6i |
* It was Sun, Jul 11, 2004 at 02:12:16PM -0400 when Phil!Gregory said:
> * Sami Samhuri <address@hidden> [2004-07-09 12:55 -0700]:
> > In addition to what Jason said, within screen the environment variable
> > TERM is set to "screen".
>
> There is an interesting subtlety here, in that $TERM crosses host
> boundaries (ssh, telnet, etc.), but $STY does not. I've used this fact to
> distinguish between "running in a screen anywhere" and "running in a
> screen on the same host as this process".
Good to know, thanks!
--
Sami Samhuri
pgp8wmwbDPhmK.pgp
Description: PGP signature
- Re: Script knowing if in screen / screen window correponding to tty, (continued)
Re: Script knowing if in screen / screen window correponding to tty, Shawn McMahon, 2004/07/09
Re: Script knowing if in screen / screen window correponding to tty, Sami Samhuri, 2004/07/09
Re: Script knowing if in screen / screen window correponding to tty, Thomas Köhler, 2004/07/11