× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi.
Thanks fot the help
I tried that, and it makes sense, but still it thoesnt work.
I was able to sucessfully remap other keys (like return as field exit)
but not these.

Now, with the changes to xxxx.map (in my case pt_as400.kmap) i only
noticed one change... When i press f22 the string value shows up in the
terminal screen (the others like f23 and f24 dont do that, but wont work
and dont return na error neither).

The keys that i am unable to use are: F20 to F24
I am using standard 105 keys (102 + "left windows" + "right windows" +
"Drop down (windows?)") from HP



-----Mensagem original-----
De: Scott Klement [mailto:klemscot@xxxxxxxxxxxx] 
Enviada: quinta-feira, 8 de Maio de 2003 16:34
Para: Linux 5250 Development Project
Assunto: Re: [LINUX5250] Help with F23 and F24





On Thu, 8 May 2003, Daniel Teixeira wrote:
[SNIP]
> (Here is the problem i guess)
> string F21 = ""
> string F22 = ""
> string F23 = ""
> string F24 = ""
> string F25 = ""
> string F26 = ""
>
> what are the string values i should place in here?
> any advice? how can i guet these codes?


In the linux subdirectory of the tarball, there's a file called
'us5250.map'.  It contains all of the key definitions that we use
on the keyboards in the USA.   Maybe you could use that as a sample
of how to do it?

Mine shows:
string F21 = "\033[35~"
string F22 = "\033[36~"
string F23 = "\033[37~"
string F24 = "\033[38~"

What that means is that when you press F21 (for example) Linux will send
the string ESC [ 3 5 ~ to TN5250.

If you look at the file called 5250.terminfo (in the same directory)
you'll see this: kf21=\E[35~

That means that the "kf21" terminfo capability is recognized when Linux
sends that sequence of characters.   In the man page for terminfo,
I see that "kf21" maps to the "FB" termcap capability.

In the src subdirectry of the tarball, I open up cursesterm.c.   Here I
see this:
  { K_F21, "FB" },

That means that when the sequence for the "FB" termcap capability is
pressed, TN5250 will recognize it as F21.

You'll note that most of my explanation is referring to Linux.  Only the
last bit (the cursesterm.c bit) is part of TN5250 itself.
_______________________________________________
This is the Linux 5250 Development Project (LINUX5250) mailing list To
post a message email: LINUX5250@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo.cgi/linux5250
or email: LINUX5250-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.