From owner-freebsd-questions Thu Feb 27 8:58:33 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B24FB37B401 for ; Thu, 27 Feb 2003 08:58:32 -0800 (PST) Received: from gicco.homeip.net (236.245.202.62.dial.bluewin.ch [62.202.245.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id D26A743F3F for ; Thu, 27 Feb 2003 08:58:29 -0800 (PST) (envelope-from hampi@rootshell.be) Received: (from hampi@localhost) by gicco.homeip.net (8.11.6/8.11.6) id h1RGwSr03733 for freebsd-questions@FreeBSD.ORG; Thu, 27 Feb 2003 17:58:28 +0100 (CET) (envelope-from hampi@rootshell.be) Date: Thu, 27 Feb 2003 17:58:28 +0100 From: Hanspeter Roth To: freebsd-questions@FreeBSD.ORG Subject: Re: determining active console Message-ID: <20030227165828.GA3638@gicco.homeip.net> Reply-To: freebsd-questions@FreeBSD.ORG Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <20030227113959.GB610@gicco.homeip.net> <20030227134837.GD1297@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030227134837.GD1297@gothmog.gr> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Feb 27 at 15:48, Giorgos Keramidas spoke: > On 2003-02-27 12:39, Hanspeter Roth wrote: > > Hello, > > how can I determine the active console? > > Use the tty(1) command: But this seems to yield the tty from which the command was launched. So if I do sleep 9; tty and then switch to an another console, that `tty` yields the tty that was active when the command line was started. But I'd like to know the console that has got the keyboard focus by switching with --. -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message