summaryrefslogtreecommitdiff
path: root/usr.bin/msgc
AgeCommit message (Collapse)Author
2003-10-27Overhaul how `build.sh tools' are used:lukem
* 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).
2003-10-15Bump date for previous.wiz
2003-09-25Add a msg_row() function that returns the current screen row.dsl
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).
2003-07-28No need for wrefresh() in msg_clear(), screen will be updated later.dsl
Stops obvious redraw of header of some menus.
2003-07-25Change variable name to compiles with WARNS=3dsl
2003-07-17only use __RCSID() if it is #definedlukem
2003-07-14use bounded string opitojun
2003-07-07Change 'Magic number' of menu text files.dsl
Correct calculation of window width in msg_prompt_win().
2003-06-27Add support for reading messages from a text file - msg_file() and msg_string().dsl
Use subwin() in msg_prompt_win() now libcurses is fixed. Some KNF changes I seem to have forgotten to commit on their own :-(
2003-06-23Add NetBSD RCS Ids.agc
2003-06-10Change msg_window() to return old window (temp buffer size isn't too important)dsl
Change msg_promt_win() to create the window. Number MSG_xxx from 1 (because 0 is NULL)
2003-06-04Add msg_prompt_win() that will prompt in the specified window (instead ofdsl
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).
2003-05-18Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),lukem
there's no need to special-case .include-ing it.
2003-01-10produce lint free code.christos
2002-09-26Begin new sentences on new lines. Minor mdoc improvements.wiz
2002-09-19use NETBSDSRCDIR as appropriatelukem
2002-01-31Roll in fixes to permit cross-compiling from non-NetBSD hosts. Thistv
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.
2002-01-29Make almost all tools compile and run properly on non-NetBSD hosts. (Intv
particular, most tools now run correctly on Solaris 7.)
2001-12-01Use standard headers.wiz
2001-12-01Whitespace cleanup.wiz
2001-11-12Formatting cleanup.tv
2001-10-15Move the default path definition from msgdb.c to a new pathnames.h, asbjh21
required by KNF. This will also be required to allow msgc to be installed into ${TOOLDIR} properly.
2001-10-05Add appropriate ifdefs so tools reachovers build cleanjmc
2000-12-04Fix typos and wording.wiz
2000-07-06Document paragraph-filling behavior of msg_display{,_add}(), andjhawk
document function of msg_table_add(). What a whacko api.
2000-07-06Add msg_*() functions to NAME (they are already in SYNOPSIS), andjhawk
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.
2000-07-03Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,matt
etc. as appropriate to get exit,srncmp,abs,abort,etc. Add -I${.CURDIR} to a few Makefiles
1999-12-31Add FILES and EVIRONMENT sections detailing what files these programs use,garbled
where they live, and how to modify that behavior.
1999-07-04nuke msg_printf() and msg_printf_add().cgd
1999-07-04const-ify strings as appropriate, and convert message 'numbers' fromcgd
ints to 'msg's. 'msg' is currently typedef'd as 'const char *', but it'll become more complex eventually.
1999-07-04oops, forgot an _cgd
1999-07-04privatize msg_beepcgd
1999-07-04nuke msg_{,no}echo, add msg_prompt_noechocgd
1999-07-04nuke msg_prompt_str, msg_prompt_addstr, and msg_table (unused), and makecgd
msg_vprintf private.
1999-07-04turn on automatic text layout for the printf and display fnscgd
1999-07-04provide APIs (currently mostly undocumented) to print pre-formattedcgd
(table) text.
1999-06-23implement word kill with control-Wcgd
1999-06-23add code to do dynamic message text layout, currently completely disabled.cgd
1999-06-23replace lots of wclear()/wmove() calls with calls to msg_clear(). wmove()cgd
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.
1999-06-22don't bother calculated up MAXSTR, especially since the value calculatedcgd
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.
1999-06-19the skeleton now also needs stdlib.hcgd
1999-06-19don't dereference NULL when thinking about copying the defaultcgd
1999-06-19teach the message prompting code to use control-U as line kill character.cgd
(not really the right thing, but it already hard-codes backspace and delete rather than using the terminal settings...)
1999-06-19fix an off-by-one error (it would put up to max_chars plus NUL into the string,cgd
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.
1999-04-25It was a bad idea to call a function 'beep'.veego
Rename it to msg_beep to avoid conflicts with the new curses.h.
1999-03-22More and more .Os cleanups. .Os is defined in the tmac.doc-common file,garbled
so we shouldn't override it with versions in the manpages. Many more to come.
1999-02-13convert from NOxxx= to MKxxx=no.lukem
include <bsd.own.mk> if testing a MKxxx variable.
1998-09-27don't install in /usr/share if NOSHARE is definedlukem
1998-04-09.y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,tv
and use smarter creation of the header file.
1998-02-03<stdlib.h> -> <unistd.h> to fix compiler warningperry