| Age | Commit message (Collapse) | Author |
|
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
|
|
|
|
Allows sysinst to place menus below any header text.
Remove msg_*.1 man pages for all the functions (they are in the wrong place
are a fair waste of directory space).
|
|
Stops obvious redraw of header of some menus.
|
|
|
|
|
|
|
|
Correct calculation of window width in msg_prompt_win().
|
|
Use subwin() in msg_prompt_win() now libcurses is fixed.
Some KNF changes I seem to have forgotten to commit on their own :-(
|
|
|
|
Change msg_promt_win() to create the window.
Number MSG_xxx from 1 (because 0 is NULL)
|
|
the default one), and with a box around the window if >= 3 lines.
Stop the char delete from killingthe RHS of any box.
Make msg_string a noop for invalid strings (might be quoted text).
|
|
there's no need to special-case .include-ing it.
|
|
|
|
|
|
|
|
round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
|
|
particular, most tools now run correctly on Solaris 7.)
|
|
|
|
|
|
|
|
required by KNF. This will also be required to allow msgc to be installed
into ${TOOLDIR} properly.
|
|
|
|
|
|
document function of msg_table_add(). What a whacko api.
|
|
add MLINKS for them. Perhaps later on they should be broken out into
a section other than 1? At least now they are findable via "man -k" etc.
|
|
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
|
|
where they live, and how to modify that behavior.
|
|
|
|
ints to 'msg's. 'msg' is currently typedef'd as 'const char *', but it'll
become more complex eventually.
|
|
|
|
|
|
|
|
msg_vprintf private.
|
|
|
|
(table) text.
|
|
|
|
|
|
to 0,0 was unnecessary because wclear() is documented to do that. also,
the immediate wrefresh() done by msg_clear() means that if we can take
advantage of full screen clear sequence, we will.
|
|
is _bogus_ in the face of printf-like message formatting! Instead,
calcuate the max size to format when the message window is set. We know
that we'll never want to format more characters than can fit in the window.
|
|
|
|
|
|
(not really the right thing, but it already hard-codes backspace and
delete rather than using the terminal settings...)
|
|
which is one too many). Also, msgc manual page says that 'def' and 'val'
can be the same string, but the way input was done (characters typed
went directly into val) meant that the contents of 'def' would be corrupted.
If the user backspaced to the beginning of the line and hit return (to accept
the default), they'd get a combination of the old default string and the
new characters they typed. alloca() a buffer an put new input there to
avoid this problem.
|
|
Rename it to msg_beep to avoid conflicts with the new curses.h.
|
|
so we shouldn't override it with versions in the manpages. Many more to
come.
|
|
include <bsd.own.mk> if testing a MKxxx variable.
|
|
|
|
and use smarter creation of the header file.
|
|
|