Zsh Mailing List Archive
Messages sorted by:
Re: autoload syntax
- X-seq: zsh-users 16700
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: autoload syntax
- Date: Thu, 5 Jan 2012 20:13:47 +0000
- In-reply-to: <4F048DCB.email@example.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20111224111347.GE3506@xvii.vinc17.org> <111226234028.ZM23820@torch.brasslantern.com> <111228112835.ZM29173@torch.brasslantern.com> <4EFE1AE2.firstname.lastname@example.org> <111230130727.ZM1480@torch.brasslantern.com> <4F048DCB.email@example.com>
On Wed, 04 Jan 2012 09:35:07 -0800
Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
> I'm just working on my first C project in linux, it's a function for
> moving the mouse pointer to various memorized positions via keystrokes.
> Three questions:
> Can I link this program with zsh the same way I do with a zsh function
> so that it becomes part of the shell?
You can add it as a module but I'm not sure it's going to help.
I suspect, in fact, you could probably write this as shell function.
Various similar but not identical things have been done with terminals
> As it is now, the various memorized positions for the mouse pointer are
> stored in a file. Can I store them in a persistent array? As a
> stand-alone utility I can see that this might be difficult, which is why
> I'm hoping that if the function becomes part of the shell, an array
> could be persistent.
No, you still need to save it to a file.
> How would I make it work in the gui as well as in a terminal? I want to
> bind keys that will function regardless of which application is running.
> I suspect that this would be done in metacity (Gnome).
Certainly the shell can't help you here. You'll need to investigate
what types of bindings are available in Gnome. KDE has global bindings,
I seem to remember. I don't use Gnome but I think metacity may be
officially on the way out...
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by: