Re: Check if running inside script

From: Dan Mahoney (Ports) <freebsd_at_gushi.org>
Date: Mon, 08 May 2023 13:13:51 UTC

> On May 8, 2023, at 8:35 AM, Andrea Venturoli <ml@netfence.it> wrote:
> 
> Hello.
> 
> Is there a way a shell script of mine can check if running inside sysutils/screen?


Well, the environment variables 

TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal[…longer output snipped]
and 
TERM=screen

Might be a hint.

-Dan