Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 1996 18:35:56 +0200 (MET DST)
From:      Greg Lehey <>
To: (hmmm)
Subject:   Re: which vt?
Message-ID:  <>
In-Reply-To: <Pine.SOL.3.91.961016210933.26573A-100000@calvino> from hmmm at "Oct 16, 96 09:13:54 pm"

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
hmmm writes:
> can a SH script figure out what vt it is being viewed on?

Sure.  tty(1) tells you just that:

$ tty

This is a pty, of course, but it works just as well on vts.  If it's
not on a tty, you get things like:

$ rsh allegro tty
not a tty


Want to link to this message? Use this URL: <>