Commit Graph

93 Commits

Author SHA1 Message Date
simonb 6ae0eb50e6 Only unctrl() the first 256 input values.
This and the previous curses patches were from Brett Lymn.
1999-12-07 03:53:11 +00:00
simonb 7bb076e511 Use unsigned offsets into __unctrl and __unctrllen.
Only prototype __CTRACE if DEBUG is defined.
1999-12-07 03:22:10 +00:00
simonb 21e2089173 Another unctrl() %s fix. 1999-12-07 03:18:52 +00:00
simonb 8733616839 In a debugging check, use %s for unctrl (it returns a char *). 1999-12-07 03:13:30 +00:00
lukem 8376788fe0 update post change to return value of tputs() third argument 1999-10-04 23:21:18 +00:00
simonb dc3d23b724 Change attr in __LDATA from a char to an int. Fixes a few annoying
screen update problems (particularly on the pmax, sparc and alpha,
and i386 to a lesser extent).  It seems that because __LDATA wasn't a
fully packed structure (and hashes to check for screen updates hashed
unused areas in the structure as well) that under some circumstances the
compiler filled the unused areas with garbage.

Doesn't break binary compatibiliy - no shared library version number
changes.
1999-09-29 00:34:38 +00:00
simonb ac71081c1a When dumping the attributes for a line, put a space between each attribute
so you can tell where each one starts and stops, and prefix these lines
with "attr: ".
1999-09-17 14:21:04 +00:00
simonb 3c0e66da97 Include current line number in CTRACE of line being deleted. 1999-09-17 13:44:31 +00:00
enami d8ad2663a8 In name section, use .Dq macro rather than writing double quote directly. 1999-08-17 03:36:35 +00:00
simonb e3dccb5971 Remove extra semicolons that crept in previous. Noted by Julian Coleman. 1999-08-08 08:58:08 +00:00
simonb 5dcc468073 Use waddnstr() instead of __waddbytes() in *addstr(), so we don't need
strlen() in scope.

Reviewed by Julian Coleman and Matthew Green.
1999-08-08 01:51:37 +00:00
simonb 3f777e28cc More trailing white space. 1999-07-02 15:58:35 +00:00
simonb e07c905939 Get rid of the evil trailing spaces and tabs. 1999-06-28 13:32:43 +00:00
simonb 4c8cdd6200 Remove the test for NOQCH, and print the line flags in the CTRACE in
the main loop wrefresh().
1999-06-28 13:27:24 +00:00
simonb 75ec9210d0 In struct __window, change flags back to an "unsigned int" from an
"u_int32_t", and move new member "delay" to the end of the structure.
Restores binary compatibility with older curses-based programs that
called any macros that modified window flags (like clearok, which
bites vi).

Fixes PR lib/7863 from Ross Harvey.
1999-06-28 12:32:07 +00:00
simonb 499fc203b7 Little nit - major first, then minor. 1999-06-27 12:14:03 +00:00
christos cbc12c53b7 - protect NULL attributes from de-referencing
- Silence pointer casts
1999-06-23 03:27:34 +00:00
christos 187ca44dc6 Silence casts 1999-06-23 03:26:02 +00:00
simonb 56351da429 Make a few private variables and functions static. 1999-06-15 04:50:28 +00:00
pk 6c4ae8ffb4 Re-arrange some code to approach our regular style. 1999-06-06 21:05:03 +00:00
pk d467771b45 Hang on to the termcap buffer that we have tgetent() fill.
(someone ows me two hours worth of beer for this... :-)
1999-06-06 20:43:00 +00:00
mycroft d0c8706cd2 Initialization of the backing store pointers in __set_subwin() was just
totally wrong.  It needs to offset by the origin of the parent window.
1999-04-22 22:39:09 +00:00
mrg 586d4ce109 Upgrades the standard NetBSD curses library to provide some
of the SYSV curses facilities.  The added features are the collapsing
of arrow and function keysequences (as defined by termcap for the
terminal) into symbolic code returns thus relieving the application of
recognising multi-character key sequences.  Other features are the
capability to perform a timed wait for a key (good for when you are
not sure if there is a keypress ready or not) and the capability for
turning off the inter-key timeout when assembling multi-character
function keys.

this work was done by Julian Coleman <J.D.Coleman@newcastle.ac.uk>
and blymn@baea.com.au (Brett Lymn).  i'm just integrating it.  thanks
HEAPS guys!
1999-04-13 14:08:17 +00:00
garbled 38c96853cf Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Wheee!
1999-03-22 19:44:33 +00:00
abs edc1a24a56 Add a note to update src/distrib/sets/lists/base/shl.*, and add a missing
RCS Id.
1999-02-25 08:02:19 +00:00
tron 1791df2139 Patch by Greg A. Woods to prevent creation of files in source directory
while building documentation. Fixes PR lib/6812.
1999-01-26 22:45:02 +00:00
lukem ce83c69e00 first pass at fixing up capitalization of function names and
arguments; ensure that each is correct with respect to the
implementation, rather than being correct as per english.
1998-08-29 08:32:32 +00:00
thorpej 7ba69add63 Add some braces to make egcs happy. 1998-08-19 00:17:41 +00:00
jtc 0d04dfb0d5 Ncurses (like SysV/XOpen based curses implementations) includes
the termcap API.  This changes bsd-curses to do the same, so we
can update program Makefiles and the like *before* ncurses 4.2
is integrated.
1998-02-18 22:08:12 +00:00
perry 312aca536f add LIBRARY section to man page 1998-02-05 18:45:17 +00:00
perry 0b7831a37b remove obsolete register declarations 1998-02-03 19:12:13 +00:00
perry cabb4ca447 merge with lite-2 1998-01-30 04:33:32 +00:00
perry b51ed80fd5 RCS Id Police. 1998-01-09 04:11:49 +00:00
perry 93db5caa95 RCSID Police. 1998-01-05 07:41:06 +00:00
christos efbb6e62ff use ${SOELIM} instead of soelim 1997-12-21 16:16:14 +00:00
christos a31755413f Make this use object directories. 1997-12-21 14:43:31 +00:00
phil 621f2971b1 Changes to make endwin() act like a SIGSTP in terms of nicely restarting
curses mode.  Taken from e-mail about PR 3981.  (Still some stuff left
in PR3981 to deal with.)
1997-11-13 00:40:27 +00:00
fair 2df6b5acdb add addnstr() to curses.3 man page per PR#2305 1997-11-05 07:47:36 +00:00
lukem 952b672fde use CPPFLAGS instead of CFLAGS 1997-10-22 23:33:05 +00:00
lukem b1927dc191 use <termcap.h> instead of defining termcap(3) stuff here 1997-10-13 16:10:36 +00:00
mycroft e96e918e60 Use bsd.subdir.mk as appropriate. 1997-10-11 09:34:07 +00:00
lukem 5542a7ca43 - define WARNS?=1 in the top-level Makefile.inc, and don't define
anywhere else.
- for now, override WARNS=0 in librpcsvc and libwrap, until they're
  cleaned up
- rcsid police

lib is now clean (except for librpcsvc and libwrap) on the i386, and
this should motivate the other ports to fix any other minor problems
that their compilers pick up that the i386 version doesn't.
1997-10-09 14:36:17 +00:00
phil 1507e4ad2c Make endwin() save state so a subsequent call to wrefresh restores curses
and makes endwin()/wrefresh() act like a SIGTSTP.
1997-09-12 21:08:22 +00:00
mikel ffcc74a97f RCSid police, set WARNS?=1 1997-07-23 03:21:21 +00:00
mikel f37d835870 RCSid police 1997-07-23 03:20:38 +00:00
mikel 716747aa72 RCSid police, fix warnings 1997-07-22 07:36:20 +00:00
mikel 825760d107 RCSid police, fix warnings 1997-07-22 07:36:17 +00:00
jtc e84c875c31 Add get{beg,max}yx and get{cur,beg,max}[yx] macros like XPG4.2 curses. 1997-05-24 00:44:57 +00:00
jtc 998658da45 Fix tipo: flusok -> flushok 1997-05-23 23:34:10 +00:00
jtc 734a742464 Moved unctrl.h from games/mille.
Install it, as it's part of the curses interface.
1997-05-23 23:12:31 +00:00