1. EXU mouse ??

Is the gpm mouse being compiled into the exu binary ?

Where is EGPM turn on in the source ?

Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » topic index » view message » categorize

2. Re: EXU mouse ??

Bernie Ryan wrote:
> Is the gpm mouse being compiled into the exu binary ?
> Where is EGPM turn on in the source ?

Bernie,

I was trying to look at the build system to see if there was a flag or not. I
see plenty of #ifdef EGPM's in .c source and in globals.e I see constant EGPM=0

I then went to the Release Notes and for version 3.0.0, I see:

http://www.rapideuphoria.com/relnotes.htm

"Also, the use of libgpm (console mouse support) has been dropped on Linux. (It
was never supported by Euphoria on FreeBSD)."

In the section with dropping ncurses.

Sorry, I don't know what more to do.

--
Jeremy Cowgar
http://jeremy.cowgar.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: EXU mouse ??

Jeremy Cowgar wrote:
> 
> Bernie Ryan wrote:
> > Is the gpm mouse being compiled into the exu binary ?
> > Where is EGPM turn on in the source ?
> 
> Bernie,
> 
> I was trying to look at the build system to see if there was a flag or not.
> I see plenty of #ifdef EGPM's in .c source and in globals.e I see constant
> EGPM=0
> 
> I then went to the Release Notes and for version 3.0.0, I see:
> 
> <a
> href="http://www.rapideuphoria.com/relnotes.htm">http://www.rapideuphoria.com/relnotes.htm</a>
> 
> "Also, the use of libgpm (console mouse support) has been dropped on Linux.
> (It was never supported by Euphoria on FreeBSD)."
> 
> In the section with dropping ncurses.
> 
> Sorry, I don't know what more to do.
> 
> --
> Jeremy Cowgar
> <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a>

Does that mean that no user can use a mouse with the exu code ?

Boy that's going to impress the Linux users.
 
Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view message » categorize

4. Re: EXU mouse ??

Bernie Ryan wrote:
> 
> Does that mean that no user can use a mouse with the exu code ?
> Boy that's going to impress the Linux users.
>  

Not sure, sounds like it. I am not sure why it was removed. It does say that it
never worked in FreeBSD. I do not think libgpm works in FreeBSD, so that was not
a fault of Euphoria there.

I do not know all the decision logic that went into removing it. Maybe someone
else knows here on EUforum?

--
Jeremy Cowgar
http://jeremy.cowgar.com

new topic     » goto parent     » topic index » view message » categorize

5. Re: EXU mouse ??

Bernie Ryan wrote:
> 
> Does that mean that no user can use a mouse with the exu code ?
> 
> Boy that's going to impress the Linux users.

I use the mouse all the time with euphoria in linux.  Just not in the console.  
But I don't think I ever use a mouse in the console.  Is this really a 
common thing?

Matt

new topic     » goto parent     » topic index » view message » categorize

6. Re: EXU mouse ??

Bernie Ryan wrote:
> 
> Jeremy Cowgar wrote:
> > 
> > Bernie Ryan wrote:
> > > Is the gpm mouse being compiled into the exu binary ?
> > > Where is EGPM turn on in the source ?
> > 
> > Bernie,
>
> > 
> > "Also, the use of libgpm (console mouse support) has been dropped on Linux.
> > (It was never supported by Euphoria on FreeBSD)."
> > 
> > In the section with dropping ncurses.
> > 
> > Sorry, I don't know what more to do.
> > 

Bring back ncurses?  Just exactly what was/is the great benefit
of Euphoria sans ncurses?  A little speed increase, a relatively modest
size increase?  

Ed.ex since 3.0 in my experience has been practically unusable under
SUSE 10.0 32bit Linux and SUSE 10.3 64bit Linux. I think that for 
Linux an ed.ex keyboard setup utility program is needed to tune the
ed.ex key codes to the user's specific terminal. 

> 
> Does that mean that no user can use a mouse with the exu code ?
> 
> Boy that's going to impress the Linux users.
>  
> Bernie

You got that right.


Ken Rhodes
Folding at Home: http://folding.stanford.edu/
100% MicroSoft Free
SuSE Linux 10.3
No AdWare, SpyWare, or Viruses!
Life is Good,  smile

new topic     » goto parent     » topic index » view message » categorize

7. Re: EXU mouse ??

Matt Lewis wrote:
> 
> Bernie Ryan wrote:
> > 
> > Does that mean that no user can use a mouse with the exu code ?
> > 
> > Boy that's going to impress the Linux users.
> 
> I use the mouse all the time with euphoria in linux.  Just not in the console.
>  
> But I don't think I ever use a mouse in the console.  Is this really a 
> common thing?
> 

Matt:

I am trying to find a way to use the mouse in frame buffer programming.

I have everything working except for access to the mouse.

Since Euphoria is not a compiler I have no other way of building or using

mouse control into Euphoria code.

You are using the mouse because it is built into code other than Euphoria

that is compiled.

Bernie


My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view message » categorize

8. Re: EXU mouse ??

Matt Lewis wrote:
> 
> But I don't think I ever use a mouse in the console.  Is this really a 
> common thing?
> 

I'm not going to say it's common, but I use it occasionally. Even over SSH. Not
in a Euphoria app, because I have not written any real console app in Euphoria.

--
Jeremy Cowgar
http://jeremy.cowgar.com

new topic     » goto parent     » topic index » view message » categorize

9. Re: EXU mouse ??

Bernie Ryan wrote:
> 
> Does that mean that no user can use a mouse with the exu code ?
> 
> Boy that's going to impress the Linux users.

IIRC, the debate revolved around the need for external dependencies.  Not
every Linux installation includes ncurses or libgpm by default.  Since the
functionality for both libs is available via .so, the argument went that 
those users who required either ncurses or gpm functionality could simply
tap into the appropriate .so.  It also resolved the issue of which VERSION of
ncurses and gpm would be supported, since not every distro follows the best 
practice of linking the versionless file to the versioned file.

new topic     » goto parent     » topic index » view message » categorize

10. Re: EXU mouse ??

Bernie Ryan wrote:
> 
> I am trying to find a way to use the mouse in frame buffer programming.
> I have everything working except for access to the mouse.
> Since Euphoria is not a compiler I have no other way of building or using
> mouse control into Euphoria code.
> You are using the mouse because it is built into code other than Euphoria
> that is compiled.

Yes, I know how I'm using the mouse.  

Have you tried wrapping libgpm?  

Matt

new topic     » goto parent     » topic index » view message » categorize

11. Re: EXU mouse ??

Matt Lewis wrote:
> 
> Bernie Ryan wrote:
> > 
> > I am trying to find a way to use the mouse in frame buffer programming.
> > I have everything working except for access to the mouse.
> > Since Euphoria is not a compiler I have no other way of building or using
> > mouse control into Euphoria code.
> > You are using the mouse because it is built into code other than Euphoria
> > that is compiled.
> 
> Yes, I know how I'm using the mouse.  
> 
> Have you tried wrapping libgpm?  
> 

Matt:

What do I do about all the externs in GPM.H

Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view message » categorize

12. Re: EXU mouse ??

Bernie Ryan wrote:
> 
> What do I do about all the externs in GPM.H

I'm not sure I understand the question.  I don't really know anything about
gpm itself.  What are they?  Functions?  Variables?  What do they do?

Matt

new topic     » goto parent     » topic index » view message » categorize

13. Re: EXU mouse ??

Matt Lewis wrote:
> 
> Bernie Ryan wrote:
> > 
> > What do I do about all the externs in GPM.H
> 
> I'm not sure I understand the question.  I don't really know anything about
> gpm itself.  What are they?  Functions?  Variables?  What do they do?
> 
Matt:

/*....................................... Global variables for the client */

extern int gpm_flag, gpm_ctlfd, gpm_fd, gpm_hflag, gpm_morekeys;

extern int gpm_zerobased;
extern int gpm_visiblepointer;
extern int gpm_mx, gpm_my; /* max x and y to fit margins */
extern struct timeval gpm_timeout;

extern unsigned char    _gpm_buf[];
extern unsigned short * _gpm_arg;

extern Gpm_Handler *gpm_handler;
extern void *gpm_data;

extern Gpm_Handler *gpm_roi_handler;
extern void *gpm_roi_data;

extern Gpm_Roi *gpm_roi;
extern Gpm_Roi *gpm_current_roi;



Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view message » categorize

14. Re: EXU mouse ??

Bernie Ryan wrote:
> 
> Matt Lewis wrote:
> > 
> > Bernie Ryan wrote:
> > > 
> > > What do I do about all the externs in GPM.H
> > 
> > I'm not sure I understand the question.  I don't really know anything about
> > gpm itself.  What are they?  Functions?  Variables?  What do they do?
> > 
> Matt:
> 
> /*....................................... Global variables for the client */
> 
> extern int gpm_flag, gpm_ctlfd, gpm_fd, gpm_hflag, gpm_morekeys;
> 
> extern int gpm_zerobased;
> extern int gpm_visiblepointer;
> extern int gpm_mx, gpm_my; /* max x and y to fit margins */
> extern struct timeval gpm_timeout;
> 
> extern unsigned char    _gpm_buf[];
> extern unsigned short * _gpm_arg;
> 
> extern Gpm_Handler *gpm_handler;
> extern void *gpm_data;
> 
> extern Gpm_Handler *gpm_roi_handler;
> extern void *gpm_roi_data;
> 
> extern Gpm_Roi *gpm_roi;
> extern Gpm_Roi *gpm_current_roi;
> 

I guess the short answer is:  define_c_var

Matt

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu