1. RE: Linux and Euphoria...

Irv Mullins wrote:
> On Monday 22 April 2002 12:16 am, you wrote:
> >
> > Hi guys,
> >
> > Been having a tough time with Euphoria and Linux.  Everything seems to
> > work great via the console yet when I go to X and use Euphoria via
> > terminals I run into problems.  Testing various terminals, some just do
> > not pickup the key codes correctly.  For example, under xterm when F1 is
> > pressed key.ex (included with euphoria) shows 3 keys were pressed (27,
> > 79, 80).  Most terminals I've tested (Konsole, xterm, gnome-terminal,
> > eterm) will give this same result.  However, one exception is rxvt.  It
> > will display 265 (correctly) for F1, but the other keys
> > (Home/End/Delete/All of the keypad) are messed up which isn't the case
> > of the others.
> 
> I can't be of much help, except to say that I've just run key.ex in all 
> the 
> terminals I have available, and the keys all work correctly. 
> Since the problem varies from one terminal to another, perhaps 
> you can find the problem in etc/termcap, or by running infocmp 
> and looking for the key bindings. Try infocmp from different terminals, 
> and see if there are differences.
> 
> Regards,
> Irv

While working with the Euphoria source code on Linux, I was
observing the codes returning from the Function keys
I saw the same mention three key code sequences being returned.
I was using Suse 7.1 and runing in graphics mode but
using the keyboard codes returning from Euphoria. I do
not know the cause of the problem but it seems to be
coming Euphoria, I didn't go any further because I had
run into other problems which I am still trying to solve.

Bernie

new topic     » topic index » view message » categorize

2. RE: Linux and Euphoria...

Doug Miller wrote:
> Irv and Bernie,
> 
> Could you provide if you use termcap or console-tools? And possibly the
> version? And maybe the function keys related area (just a small snip) of
> the config file?
> 
> Thanks,
> 

Doug:
I start/run my euphoria programs from KDE2 by typing in a console
window. I installed SUSE 7.1 out of the box with all of its
default settings, I'am not smart enough to play with the
configuration files, etc. 
Bernie

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

3. RE: Linux and Euphoria...

Linux (UNIX, also) has had to handle the problem of multitudes of 
terminals that react in different ways for a long time.  Nobody wants to 
have to write 700 versions of a program to be able to handle all the 
terminal types out there, so the TERMCAP approach was developed.  If U 
look at the termcap file (usually in /usr/share/misc/), U will find that 
it is a text file which is actually a database with an entry describing 
the TERMinal CAPabilities of each type of terminal.  The format of the 
database is described in the section 5 termcap manpage (I think).  For a 
single user, or a group of like-minded users, I think Daniel has the 
right approach - customize X so that the desired characters are sent for 
each key.

					Thx, Phil Long



euphoria at ahava.f9.co.uk wrote:
> On 21/4/2002, Doug Miller wrote:
> 
> > Been having a tough time with Euphoria and Linux.  Everything seems to
> > work great via the console yet when I go to X and use Euphoria via
> > terminals I run into problems.  Testing various terminals, some just do
> > not pickup the key codes correctly.  For example, under xterm when F1 is
> > pressed key.ex (included with euphoria) shows 3 keys were pressed (27,
> > 79, 80).  Most terminals I've tested (Konsole, xterm, gnome-terminal,
> > eterm) will give this same result.  However, one exception is rxvt.  It
> > will display 265 (correctly) for F1, but the other keys
> > (Home/End/Delete/All of the keypad) are messed up which isn't the case
> > of the others.
> > If anyone has this working under X just fine, please let me know.  It's
> > really getting annoying now.
> 
> It works fine in xterm for me, and always has done. I'm using Debian's
> stable distro.
> 
> I use a custom xmodmap (dvorak keyboard layout + Hebrew) but back when I
> was still using qwerty it also worked fine.
> 
> -- 
> Blessings,						     ,úåëøá
> Daniel Johnson		euphoria at ahava.f9.co.uk		ìàéøà ìàéðã
> -
> Trust in the Lord with all your heart		  êáì¯ìëá éé ìà çèá
> do not rely on your own understanding		  ïòùú¯ìà êúðéá¯ìàå
> Proverbs 3:5						   ä:â éìùî
> 
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu