1. Linux and Euphoria...

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.

Things I've tried include using a default key map (pc104) instead of my
actual key map (microsoft, I own a Microsoft Natural Elite to be exact).
 Using xmodmap to remap the keyboard correctly didn't work either
(Correct me if I'm wrong, but keycode 67 and keysym 0xffbe should be
right).   Again, I want to repeat myself, it *DOES* work from the
console.  It's just annoying I can't do it under X windows.

Seeing as exu (I think) is a static executable, this shouldn't be the
source of the problem.  Maybe it's ncurses?  By the way, other ncurses
based apps (mc to name one) work fine in an xterm or rxvt.

If anyone has this working under X just fine, please let me know.  It's
really getting annoying now.

Well, I think you can see where I'm going with this.  It makes it
extremely hard to use the trace features of Euphoria under X and even
ed.ex with the Home/End keys messed up.  I'd be very appreciative of any
help in resolving this issuse.  Thanks in advance.

Regards,

Doug Miller

new topic     » topic index » view message » categorize

2. Re: Linux and Euphoria...

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

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

3. Re: Linux and Euphoria...

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 Miller

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

4. Re: Linux and Euphoria...

On Monday 22 April 2002 02:27 pm, you wrote:
>
> 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

Once again, I got Bernie's reply, but never got Doug's question.
Checking via the web interface, I see I've gotten 2/3 of the 
messages posted today.

Anyway, my solution to the kinds of problems Doug is experiencing
it to simply re-load from the CD.  Since my user space is on a 
separate partition from the system stuff, I don't lose any work. 
Like Bernie,  I don't want to have to mess with configuration files.
More often than not, I wind up 'fixing' the wrong thing : )

Regards,
Irv

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

5. Re: Linux and Euphoria...

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.

--=20
Blessings,=09=09=09=09=09=09     ,=FA=E5=EB=F8=E1
Daniel Johnson=09=09euphoria at ahava.f9.co.uk=09=09=EC=E0=E9=F8=E0 =EC=E0=E9=
=F0=E3
-
Trust in the Lord with all your heart=09=09  =EA=E1=EC=AF=EC=EB=E1 =E9=E9 =
=EC=E0 =E7=E8=E1
do not rely on your own understanding=09=09  =EF=F2=F9=FA=AF=EC=E0 =EA=FA=
=F0=E9=E1=AF=EC=E0=E5
Proverbs 3:5=09=09=09=09=09=09   =E4:=E2 =E9=EC=F9=EE

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

6. Re: Linux and Euphoria...

On Wednesday 24 April 2002 09:45 pm, you wrote:
>
> 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.

Yes, however that should not be a problem here. All distributions 
of Linux which I have tried (about 6 or 7) have worked without 
any tweaking of the files. The problem Doug is having is more 
likely related to an installation problem (missing files, or 
something).

Doug, if you're still around, what distribution are you using,
and what happens when you type echo $TERM in each of the various 
terminals?

Regards,
Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu