Re: X11 bindings and shell bindings

2008-09-18 Thread Andy Wingo
Hello! On Thu 18 Sep 2008 21:37, "Linas Vepstas" <[EMAIL PROTECTED]> writes: > 2008/9/18 Andy Wingo <[EMAIL PROTECTED]>: >> On Thu 18 Sep 2008 14:38, "Ishan Arora" <[EMAIL PROTECTED]> writes: >> >>> Is there a procedure to get mouse position. >> >> No, but it's relatively easy to write a minimal

Re: X11 bindings and shell bindings

2008-09-18 Thread Linas Vepstas
2008/9/18 Andy Wingo <[EMAIL PROTECTED]>: > On Thu 18 Sep 2008 14:38, "Ishan Arora" <[EMAIL PROTECTED]> writes: > >> Is there a procedure to get mouse position. > > No, but it's relatively easy to write a minimal set of Xlib bindings, > binding only the functions you need. Griddy has some bindings:

Re: X11 bindings and shell bindings

2008-09-18 Thread Andy Wingo
On Thu 18 Sep 2008 14:38, "Ishan Arora" <[EMAIL PROTECTED]> writes: > Is there a procedure to get mouse position. No, but it's relatively easy to write a minimal set of Xlib bindings, binding only the functions you need. Griddy has some bindings: bzr get http://wingolog.org/bzr/griddy Andy --

Re: X11 bindings and shell bindings

2008-09-18 Thread Paul Emsley
Ishan Arora wrote: Hi, Is there a procedure to get mouse position. I guess there may be a way via X11, but it is not clear to me. What you might want to be doing is knowing the coordinates of a click in a canvas, which is not the same thing (and easier). And is there a procedure to synchro

Re: X11 bindings and shell bindings

2008-09-18 Thread JonWilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oh right. My apologies for not answering the question you asked... Ishan Arora wrote: > Hi, > > Thanks for the reply. I tried system. It calls the code synchronously, and > returns a number for success or failure of the command. Is there a way such

Re: X11 bindings and shell bindings

2008-09-18 Thread Neil Jerram
2008/9/18 <[EMAIL PROTECTED]>: > Ishan Arora <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Thanks for the reply. I tried system. It calls the code synchronously, and >> returns a number for success or failure of the command. Is there a way such >> that the stdout output of the command is returned a

Re: X11 bindings and shell bindings

2008-09-18 Thread Kjetil S. Matheussen
"Ishan Arora": > And is there a procedure to > synchronously run a shell code and return the output as a String. Thanks. > Should do: (use-modules (ice-9 rdelim)) (define (get-system-output command) (let ((logfilename (tmpnam))) (system (string-append command " > " logfilename)) (let

Re: X11 bindings and shell bindings

2008-09-18 Thread dsmich
Ishan Arora <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for the reply. I tried system. It calls the code synchronously, and > returns a number for success or failure of the command. Is there a way such > that the stdout output of the command is returned as a string? Thanks again. Try open-i

Re: X11 bindings and shell bindings

2008-09-18 Thread Ishan Arora
Hi, Thanks for the reply. I tried system. It calls the code synchronously, and returns a number for success or failure of the command. Is there a way such that the stdout output of the command is returned as a string? Thanks again. Regards, Ishan On Thu, Sep 18, 2008 at 7:22 PM, Jon Wilson <[EMA

Re: X11 bindings and shell bindings

2008-09-18 Thread Jon Wilson
Hi Ishan, * There are guile bindings for gtk and for gnome; I don't know of any other X11 bindings. * Try (system "ls -l"). Look it up in the POSIX section in the manual. Regards, Jon Ishan Arora wrote: Hi, Is there a procedure to get mouse position. And is there a procedure to synchrono

X11 bindings and shell bindings

2008-09-18 Thread Ishan Arora
Hi, Is there a procedure to get mouse position. And is there a procedure to synchronously run a shell code and return the output as a String. Thanks. Regards, Ishan