Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site molihp.UUCP Path: utzoo!utcsri!ubc-vision!molihp!robt From: robt@molihp.UUCP (Robert L Thurlow) Newsgroups: net.unix-wizards,net.unix Subject: Re: Terminfo()--Ideas needed. System V Message-ID: <155@molihp.UUCP> Date: Fri, 2-May-86 19:07:50 EDT Article-I.D.: molihp.155 Posted: Fri May 2 19:07:50 1986 Date-Received: Sat, 3-May-86 12:01:51 EDT References: <1135@bunker.UUCP> Reply-To: robt@molihp.UUCP (Robert L Thurlow) Organization: Moli Energy, Vancouver, B.C., CANADA Lines: 26 Approved: molihp 2386 1420 Summary: <> In article <1135@bunker.UUCP> ricker@bunker.UUCP (James A. Ricker) writes: >In curses.h there is a comment to the effect that 64 function keys are supported >However, the structures in term.h only have members for 0-10 function keys. >How are you handling this? Any ideas welcome. > When we upgraded to HP-UX 5.01, I saw this too, and I got excited. I must support terminals with SHIFT-able function keys, and my logic said to use terminfo f0-f15 for unshifted versions, f16-f31 for shifted versions, f32-f47 for keys with the control key, and f48-f63 for shift-control. Tek 4105's will even do all this, and all our decent terminals work with shift. The space IS EVEN RESERVED in the terminfo entry. The snag is that 'tic(1M)' will only stuff pointers for f0-f10 into the terminfo file, and 'tgetstr(3)' will only read f0-f9! This is irritating, since I can taste getting those keys legally. At present, I use the function key labels l0-l7 for actual strings returned by those shifted keys, which is not good, and I need my own routine to think about what keys have been pressed. I feel like I could write my own terminfo from scratch by now. Sigh. # UUCP : ...!ubc_vision!molihp!robt Robert Thurlow # # My thoughts are my own, and are void where prohibited by law. # # "There was something fishy aboout the butler. I think he was a # # Pisces, probably working for scale." -Nick Danger, 3rd Eye #