[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Finding terminal which currently has focus?
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Finding terminal which currently has focus? |
Date: |
Thu, 31 Oct 2013 07:38:08 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Wed, Oct 30, 2013 at 09:21:51PM +0000, adrelanos wrote:
> I know I can use `tty` to find out the the processes own terminal. But
> what about the current focus?
Which window has mouse focus? That would be an X thing. You would have
to ask an X mailing list.
> One can spawn many login shells tty1, tty2 etc. Can a bash script in
> tty1 know, that tty1 is currently not being looked at? Or in other
> words, can the bash script in tty1 know that currently lets say tty7 is
> visible?
Oh, you mean which Linux virtual console is currently active? That
would be a Linux thing. You would have to ask a Linux mailing list.