zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: command on switching terminals?
Date: Sat, 06 Jan 2018 14:45:31 -0800	[thread overview]
Message-ID: <68a756b1-db15-8ec4-cdd9-c07a4f9f869e@eastlink.ca> (raw)
In-Reply-To: <CAHYJk3S=p9xtwZKDj-rD+UPCb4TdWN0dSCiqoqYdO0tExuCRog@mail.gmail.com>

On 06/01/18 02:20 PM, Mikael Magnusson wrote:

Thanks Mikael, I'll play with that and let you know.
> You can, yes. Note that if a program was running in the foreground,
> zsh won't know if the terminal is active or not once that program
> finishes though. I have never found a practical use for this.

What I want to do is pretty esoteric, if I execute my command " c 12 " I 
want focus to jump to xterm #12 (which already works fine) but also 'cd' 
xterm #12 to the current directory in the xterm I just jumped from.  Of 
course any sort of 'cd' command in the same function but after the jump 
continues to be executed in the original xterm, thus I'll want some way 
of detecting the change in focus. It's smartassy but should be 
educational to fool around with.


  reply	other threads:[~2018-01-06 23:15 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-06  5:33 Ray Andrews
2018-01-06 22:20 ` Mikael Magnusson
2018-01-06 22:45   ` Ray Andrews [this message]
2018-01-07 18:48     ` Grant Taylor
2018-01-07  0:51   ` Ray Andrews
2018-01-07 13:24     ` Mikael Magnusson
2018-01-07 16:45       ` Ray Andrews
2018-01-07 18:23         ` Mikael Magnusson
2018-01-07 18:39           ` Grant Taylor
2018-01-07 19:06           ` Ray Andrews
2018-01-07 20:27             ` Bart Schaefer
2018-01-07 20:43               ` Grant Taylor
2018-01-07 21:12               ` Ray Andrews
2018-01-07 21:36                 ` Grant Taylor
2018-01-08  1:43                 ` Ray Andrews
2018-01-07 20:29             ` Grant Taylor
2018-01-08  6:25   ` Mikael Magnusson
2018-01-08  6:28     ` Mikael Magnusson
2018-01-08 15:39       ` Ray Andrews
2018-01-08 16:08         ` Peter Stephenson
2018-01-08 16:38           ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=68a756b1-db15-8ec4-cdd9-c07a4f9f869e@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).