[net.unix-wizards] A Question About CURSES Capabilities

bazelman@wivax.UUCP (08/03/84)

If the termcap database defines the delete line capability, shouldn't curses
use it if the deleteln() function is used?  Curses is repainting the entire
screen.  Could my curses code be old, it's from 1981.

Also, if I update the curses window buffers using deleteln() and I manually
update the screen by outputting the delete line string from termcaps, if it
exists, how do I convince curses that the screen is up-to-date so that the
next refresh doesn't repaint the screen.  Is there a flag somewhere?

                          Rudy Bazelman / Wang Institute

mac@tesla.UUCP (Michael Mc Namara) (08/05/84)

>If the termcap database defines the delete line capability, shouldn't curses
>use it if the deleteln() function is used?  Curses is repainting the entire
>screen.  Could my curses code be old, it's from 1981.
>
>Also, if I update the curses window buffers using deleteln() and I manually
>update the screen by outputting the delete line string from termcaps, if it
>exists, how do I convince curses that the screen is up-to-date so that the
>next refresh doesn't repaint the screen.  Is there a flag somewhere?
>
>                          Rudy Bazelman / Wang Institute
>
>

The flag you want to use is idlok(win,bf).

"If enabled,  curses will consider using the hardware insert/delete line 
feature of terminals so equipped.   If disabled, curses will  never use 
this feature. " -- The Curses Reference Manual.

This should answer both queries.

                             Michael McNamara @ Cornell EE.
                            ..!cornell!tesla!mac

bsa@ncoast.UUCP (The WITNESS) (08/12/84)

I se no "idlok" function OR #define in our curses.  Dup original query:
is our curses out of date?

/* 4/17/81 (Berkeley) @(#)curses.h	1.7 */

-- 
     Brandon Allbery: decvax!cwruecmp{!atvax}!bsafw: R0176@CSUOHIO.BITNET
	 6504 Chestnut Road, Independence, OH 44131 <> (216) 524-1416

"The more they overthink the plumbin', the easier 'tis tae stop up the drain."

arnold@ucsfcgl.UUCP (Ken Arnold%UCB) (08/13/84)

You should be warned that idlok() only exists in the System V
version of curses.  Berkeley curses does not have that.
		Ken Arnold

chris@umcp-cs.UUCP (08/21/84)

``idlok'' is only in Mark Horton's new curses (supposedly comes with
SVR2).
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris@maryland