missing function in curses.h

Brandon S. Allbery KB8JRR allbery at NCoast.ORG
Tue Jan 1 14:41:38 AEST 1991


As quoted from <175 at genco.bungi.com> by rad at genco.bungi.com (Bob Daniel):
+---------------
| Actually, I'm am using this routine for the purpose of setting function key
| labels. I'm running AT&T SV3.2.2 and the 4.1.6 C Development Kit.  It doesn't
| include all the slk_* functions.  Is there a solution?
+---------------

Aside from bitching to your vendor ---

It depends on how much work you want to do.  If your terminfo is up to date
(unlikely, since curses and terminfo are pretty much one and the same) then
you can access the terminfo codes directly and program them yourself.  I don't
have the list in front of me (this is a Xenix system I'm using) but it
shouldn't be difficult.

If you don't have the extended entries but you *do* have ripoffline(), you can
use that.  It removes the bottom line of the screen from curses; you can then
maintain it yourself.  But you have to maintain it *completely* yourself,
without help from curses.

A better solution is to code your program to not use the bottom line of the
screen, then write your own slk_* routines to use the last line.  Not
difficult using rudimentary curses calls, and the same code will work on BSD
curses flavors or SVR2 curses as well.

Personally, I'd opt for bawling the h*ll out of your vendor for not providing
a full V.3.2 --- especially from AT&T!

++Brandon
-- 
Me: Brandon S. Allbery			    VHF/UHF: KB8JRR on 220, 2m, 440
Internet: allbery at NCoast.ORG		    Packet: KB8JRR @ WA8BXN
America OnLine: KB8JRR			    AMPR: KB8JRR.AmPR.ORG [44.70.4.88]
uunet!usenet.ins.cwru.edu!ncoast!allbery    Delphi: ALLBERY



More information about the Comp.unix.programmer mailing list