screen-users
[Top][All Lists]
Advanced

[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

Attachment: pgp8wmwbDPhmK.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]