|
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.
As an Amazon Associate we earn from qualifying purchases.
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.