Commit Graph

417 Commits

Author SHA1 Message Date
wiz
6f9372dc27 Typo; from Jared Yanovich via jmc@openbsd. 2003-11-02 11:16:03 +00:00
fvdl
3144ca7d6b Don't compare a char to NULL. 2003-10-21 00:30:05 +00:00
fvdl
f8ba2b4d70 Don't compare an int against NULL. 2003-10-21 00:25:21 +00:00
fvdl
79cc88df48 Don't use NULL to compare against an int. 2003-10-21 00:16:55 +00:00
wiz
449cf546df Link curses_cursor(3) to getmaxyx(3); from Steve Rumble in PR 23183. 2003-10-18 09:08:46 +00:00
wiz
6f0dbbbf08 mvgetstr and mvwgetstr do not have a limit argument; from Steve Rumble in PR 23183. 2003-10-18 09:06:49 +00:00
jdc
324f201e56 Increment libcurses minor to 10 for addition of redrawwin() and wredrawln(). 2003-10-05 10:14:36 +00:00
jdc
d4f82864b6 Add redrawwin() and wredrawln().
Fixes PR lib/20038.
2003-10-05 10:13:02 +00:00
jdc
7c12a98041 Fix __CTRACE arguments. 2003-10-05 08:26:02 +00:00
dsl
b176defcde Revert most of rev 1.27 of addbytes.c and associated changes.
Posix requires that adding '\n' does clrtoeol() and 'x = 0'.
(Making "\r\n" erase the text that has just been displayed.)
Remove __NONL test from addbytes, __NONL is a property of the output device.
2003-08-10 07:37:11 +00:00
agc
eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
dsl
a2a4308b26 Remove unused extern for __winlistp. 2003-08-01 13:29:06 +00:00
dsl
c841017dd9 Do something more sensible for waddbytes(..., "\r\n", ...);
I'm not sure about the clrtoeol() at all though - maybe it should
be done as part of scroll()?
Leave 'x' alone when __NONL set.
2003-07-31 10:36:00 +00:00
dsl
87e998f336 Remove __winlistp, add *screen to WINDOW and initialise in newwin().
Make delwin() remove window from list of windows on its screen.
Free win->lspace and win->lines for subwins (they only share text space).
Free things in the correct (and same) order if malloc() fails in __makenew().
Adjust delscreen() for delwin() removing itself from winlist.
Fixes potential massive corruptions if delwin() called on a main window.
NB: not responsible for the sysinst core dumps :-(
2003-07-30 11:19:00 +00:00
dsl
a04fc5a9fe Use _cursesi_screen->winlistp (depracating __winlist) 2003-07-30 11:11:55 +00:00
dsl
7996b95938 Use _cursesi_screen->winlistp (depracating __winlistp)
Optimise and adjust layout so that fewer line breaks are required.
2003-07-30 11:10:42 +00:00
dsl
8f4bd35d69 Adjust layut to put ?: clause on a single line 2003-07-30 11:07:21 +00:00
dsl
5e26f5482a Copy correct size of 1 line when doing insert/delete line on a subwin. 2003-07-29 16:42:55 +00:00
dsl
880234af7e Stop def_prog_mode() saving incorrect termio settings.
Make set_prog_mode() set the correct settings.
I'm not certain how much restoration set_prog_mode() should do, but it
definitely doesn't want to do all of __restartwin().
Maybe __restartwin() should be calling set_prog_mode()?
2003-07-10 12:50:18 +00:00
lukem
001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
jdc
256ce6a6f2 Rework the way window/wub-window refresh is done.
For each line that is marked dirty on each sub-window, we now mark the
relevant line on the parent as dirty and unmark it on the sub-window.
This avoids copying the same data multiple times and also leaves the
cursor in the correct position for the window refreshed.
2003-07-05 19:07:49 +00:00
jdc
24b8aeb15a New sub-windows should not be marked as pads.
(Also noticed by David Laight.)
2003-07-05 19:03:32 +00:00
wiz
a86b52e89a Sort list of functions. 2003-07-04 12:40:15 +00:00
wiz
8d15a4fe46 Fix Dd string and remove trailing whitespace. 2003-07-04 12:38:58 +00:00
jdc
5572bca927 Make the refresh complete in the presence of multiple sub-windows.
Match function names in the debug output.
2003-06-28 21:11:43 +00:00
wiz
1f45225df4 Fix typo in macro name, and remove a trailing comma. 2003-06-27 13:05:08 +00:00
dsl
14b491c2c5 Stop refresh(subwin) doing refresh on the other subwin's created before it.
(If nothing else the cursor would get left in the wrong place).
Fix some if (!flags & MASK) checks.
2003-06-26 17:17:10 +00:00
dsl
b70727e760 Error attempts at nested subwindows, the data structures don't support them.
I can't quite decide whether the X/Open Curses Issue 4, version 2 needs them.
2003-06-26 17:13:55 +00:00
dsl
c7ba282830 Stop blank line being added when newline is processed with __ISPASTEOL set. 2003-06-26 10:22:33 +00:00
wiz
85cf615bd0 Work around a warning from groff-1.19. 2003-06-26 10:00:24 +00:00
jdc
11f267a000 Add noqiflush() and qiflush()
Fixes PR lib/20037.
2003-06-20 06:58:53 +00:00
jdc
c521d02fce Add keyname().
Fixes PR lib/20033.
Allow SMALL to be defined, to reduce the size of the library.
2003-06-20 06:56:29 +00:00
jdc
44d2f865a0 Mark all lines on new pads as dirty. This ensures that we draw blank
(untouched) lines when the pad is refreshed.
2003-06-09 06:58:11 +00:00
dsl
386a8e5059 Don't restartwin() if it isn't stopped.
Ensures we don't save the modified tty flags (as well as doing all the
initialisation twice) if the application (eg systat) calls curses functions
in its own restart code.
2003-05-28 20:19:42 +00:00
wiz
a2c49e51e1 Fix typo reported by Douwe Kiela in PR 21677. 2003-05-25 17:19:42 +00:00
wiz
c66093c273 Make i an int to please lint and remove a cast. 2003-05-22 16:09:09 +00:00
wiz
e6e9b32c33 Grammar fix; no functions returnint pointers here, so remove section
about those functions from RETURN VALUES section.
2003-05-22 09:25:52 +00:00
jdc
8b94a64a5a Remove erroneouly added file. 2003-05-21 21:24:36 +00:00
jdc
cbce99002b Cross reference curses_addchstr.3. 2003-05-21 21:22:15 +00:00
jdc
8b782b08d1 Increment libcurses minor for addition of addchstr() functions. 2003-05-21 21:21:14 +00:00
jdc
57b809b169 Add addchstr() family of functions.
Based on mail from Douwe Kiela.
Fixes PR lib/21285 by Thomas Klausner.
2003-05-21 21:19:52 +00:00
jdc
416748f2db Add mvw* functions. 2003-05-21 20:33:21 +00:00
wiz
68221b9ec6 Bump date for last. 2003-05-21 06:57:08 +00:00
jdc
ad216762c8 Add missing *printw manual page links.
Patch provided in PR lib/21446 by Douwe Kiela.
2003-05-21 06:46:51 +00:00
jdc
8aec7a6456 Sort addbytes(). 2003-05-21 06:16:16 +00:00
jdc
a365e46b92 Mention _CURSES_USE_MACROS. 2003-05-21 06:15:09 +00:00
jdc
2e4b986118 Add missing manual page links. 2003-05-20 06:54:44 +00:00
dsl
1473d232c3 Don't do __stopwin() if it is already stopped.
Allows error messages from programs like sysinst() to be seen.
(There is an explicit stopwin() before the error message is output,
and a second in the atexit() called cleanup() routine)
2003-05-18 10:02:07 +00:00
wiz
472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
wiz
e0f416155a New sentence, new line. 2003-04-16 12:36:44 +00:00