From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3204 invoked by alias); 5 Jan 2012 20:32:30 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16701 Received: (qmail 25768 invoked from network); 5 Jan 2012 20:32:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.30 as permitted sender) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.0 cv=e/t9udV/ c=1 sm=1 a=F38gBR/N/Qdjpq1b3FW1JA==:17 a=WgCWZe6VrWMA:10 a=8nJEP1OIZ-IA:10 a=zs9dSTssxtY0rbLApAkA:9 a=wPNLvfGTeEIA:10 a=ZjIqTmGINkQKjhCx/60B3Q==:117 Message-id: <4F0608CF.3020001@eastlink.ca> Date: Thu, 05 Jan 2012 12:32:15 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101218 Thunderbird/3.1.7 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: autoload syntax References: <20111224111347.GE3506@xvii.vinc17.org> <111226234028.ZM23820@torch.brasslantern.com> <111228112835.ZM29173@torch.brasslantern.com> <4EFE1AE2.1000404@eastlink.ca> <111230130727.ZM1480@torch.brasslantern.com> <4F048DCB.8000600@eastlink.ca> <20120105201347.28d5dfe9@pws-pc.ntlworld.com> In-reply-to: <20120105201347.28d5dfe9@pws-pc.ntlworld.com> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit On 05/01/12 12:13 PM, Peter Stephenson wrote: Hi Peter: > On Wed, 04 Jan 2012 09:35:07 -0800 > Ray Andrews 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. > So I can link a C module the same as a shell function? Where can I find out more about this? > I suspect, in fact, you could probably write this as shell function. > Various similar but not identical things have been done with terminals > before. > I'm not surprised. I can't be the first guy who is bothered by having to use the mouse to move between xterms. >> 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. > ... or I guess the environment should work. >> 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... > I've got it working quite well using metacity bindings, I can hotkey between applications or xterms on either of my monitors, so I'm happy enough. Hey Peter, you never answered my email asking for more information about zsh. I think I want to get involved. Ray