[comp.unix.xenix] Curses

derek1@garfield.MUN.EDU (Derek Scott) (12/14/88)

       I am currently involved in some software development that requires
       the use of the curses termcap library. Under terminfo, there is a
       function called nodelay(), which makes functions such as getch(),
       return a value of -1 when there is no keyboard input. What I
       require is the same handling of character input with the ability
       to turn the delay on and off, such as nodelay() and delay(). Any
       suggestions, or remedies would be greatly appreciated. If your
       solution is not worth netting about, email to the address below.



+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|                                                                           |
| So why use termcap if the function I need in terminfo? Persons who like   |
| to curse alot should know.                                                |
|                                                                           |
|  Derek F. Scott                       derek1@garfield.mun.cdn             |
|  Atlantic Airways Limited             Memorial University of Newfoundland |
|  St. John's Newfoundland              St. John's Newfoundland             |
|  A1A-2Y4 (709)576-2198                                                    |
|                                                                           |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

corwin@polari.UUCP (Don Glover) (12/13/89)

I am using Xenix SysV/386 2.3 and the appropriate development system.
I have been compiling some programs using curses, and I wanted to recompile
them using termcap instead of terminfo.  When I installed the Devel system
I chose the 'both' option, meaning I would have to use either -DM_TERMINFO
or -DM_TERMCAP.  When I do the compile I am told that it cannont find
Slibcurses.a, can anyone tell me if this should be missing and just not
documented or is there some problem with the installation or.....

jeff@questar.QUESTAR.MN.ORG (Jeff Holmes) (01/12/90)

	I'm doing some work using curses and I was wondering
	if anyone could tell me if this is the correct way
	to test for funtion key presses.

	...
	keypad(w, TRUE);
	...
	c = getch();

	if(c == KEY_LEFT)
	...

	NOTE: I'm using a qvt101+ terminal and the termcap and terminfo
	      values for the left arrow key is ^H.

	Anyone know?

	Thanks
		Jeff
-- 
Jeff Holmes	                  DOMAIN: jeff@questar.mn.org 
Questar Data Systems                UUCP: amdahl!bungia!questar!jeff
St. Paul, MN 55121		    AT&T: +1 612 688 0089