Date: Thu, 27 Feb 2003 20:21:35 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: freebsd-questions@FreeBSD.ORG Subject: Re: determining active console Message-ID: <20030227182135.GB993@gothmog.gr> In-Reply-To: <20030227165828.GA3638@gicco.homeip.net> References: <20030227113959.GB610@gicco.homeip.net> <20030227134837.GD1297@gothmog.gr> <20030227165828.GA3638@gicco.homeip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-02-27 17:58, Hanspeter Roth <hampi@rootshell.be> wrote: > On Feb 27 at 15:48, Giorgos Keramidas spoke: > > On 2003-02-27 12:39, Hanspeter Roth <hampi@rootshell.be> 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 Hmmm, this is the "definition" of a virtual console. You can run long-running commands on one and still switch to another. > and then switch to an another console, that `tty` yields the tty > that was active when the command line was started. Yep. That's the idea. > But I'd like to know the console that has got the keyboard focus by > switching with <ctrl>-<alt>-<fN>. So, run "tty" on the console *after* switching to it :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030227182135.GB993>