× 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,

I'm trying to use tn5250 with OpenBSD. It work but there seems to have problem with the F1-F24 key. I first tried with OpenBSD's package. Work well but the function keys. I then tried to download the latest version and compile it.
Same result.

Now i tried to get the FreeBSD termcap.sample to work. It add the color right but F key still not working. And there is some part of the screen not cleared when a new screen is displayed.

Following are part of trace file...

tn5250_char_map_new: map = "37"
Found string for cap 'cr': '^M'.
Found string for cap 'kB': '^[[Z'.
Found string for cap 'k1': '^[[M'.
Found string for cap 'k2': '^[[N'.
<..>


When I press F1 key...

<..>
display_do_keys!
curses_getch: received 0x1B.
curses_getch: received 0x5B.
curses_getch: received 0x31.
curses_getch: received 0x31.
curses_getch: received 0x7E.
@key 27
HandleKey: Weird key ignored: 27
@key 91
HandleKey: key = [
HandleKey: fieldtype = 0; char = '['.
@key 49
HandleKey: key = 1
HandleKey: fieldtype = 0; char = '1'.
@key 49
HandleKey: key = 1
HandleKey: fieldtype = 0; char = '1'.
@key 126
HandleKey: key = ~
HandleKey: fieldtype = 0; char = '~'.
<..>

How can I get the function key to work.

Regards,


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.