[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: |
Phil!Gregory |
Subject: |
Re: Script knowing if in screen / screen window correponding to tty |
Date: |
Sun, 11 Jul 2004 14:12:16 -0400 |
User-agent: |
Mutt/1.5.5.1+cvs20040105i |
* 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".
--
...computer contrarian of the first order... / http://aperiodic.net/phil/
PGP: 026A27F2 print: D200 5BDB FC4B B24A 9248 9F7A 4322 2D22 026A 27F2
--- --
They laughed at Einstein. They laughed at the Wright Brothers. But they
also laughed at Bozo the Clown.
-- Carl Sagan
---- --- --
- Re: Script knowing if in screen / screen window correponding to tty, (continued)
- Re: Script knowing if in screen / screen window correponding to tty, Jason White, 2004/07/11
- Re: Script knowing if in screen / screen window correponding to tty, Jason White, 2004/07/11
- Re: Script knowing if in screen / screen window correponding to tty, Buddy Burden, 2004/07/12
- Re: Script knowing if in screen / screen window correponding to tty, Jason White, 2004/07/12
- Re: Script knowing if in screen / screen window correponding to tty, Buddy Burden, 2004/07/13
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,
Phil!Gregory <=
Re: Script knowing if in screen / screen window correponding to tty, Thomas Köhler, 2004/07/11