Commit Graph

53 Commits

Author SHA1 Message Date
dsl
ee1a61d7eb No need for wrefresh() in msg_clear(), screen will be updated later.
Stops obvious redraw of header of some menus.
2003-07-28 09:55:24 +00:00
dsl
5cd6e49033 Change variable name to compiles with WARNS=3 2003-07-25 07:48:02 +00:00
lukem
abcf838dab only use __RCSID() if it is #defined 2003-07-17 08:33:03 +00:00
itojun
2fe0488981 use bounded string op 2003-07-14 09:33:08 +00:00
dsl
f2c019d534 Change 'Magic number' of menu text files.
Correct calculation of window width in msg_prompt_win().
2003-07-07 12:22:35 +00:00
dsl
e2724ab4be Add support for reading messages from a text file - msg_file() and msg_string().
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-27 22:11:59 +00:00
agc
a8d6388e6f Add NetBSD RCS Ids. 2003-06-23 13:05:47 +00:00
dsl
62a063f96b Change msg_window() to return old window (temp buffer size isn't too important)
Change msg_promt_win() to create the window.
Number MSG_xxx from 1 (because 0 is NULL)
2003-06-10 17:24:17 +00:00
dsl
15cd94ddd8 Add msg_prompt_win() that will prompt in the specified window (instead of
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-06-04 19:00:26 +00:00
lukem
826a14607a Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
christos
c3e2d898b4 produce lint free code. 2003-01-10 20:00:50 +00:00
wiz
e65d3f8091 Begin new sentences on new lines. Minor mdoc improvements. 2002-09-26 01:26:53 +00:00
lukem
2c16ea6f7e use NETBSDSRCDIR as appropriate 2002-09-19 11:31:21 +00:00
tv
9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
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-31 22:43:33 +00:00
tv
a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
wiz
d2d0c78429 Use standard headers. 2001-12-01 20:43:39 +00:00
wiz
aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
tv
36d6a03ffd Formatting cleanup. 2001-11-12 20:26:55 +00:00
bjh21
92fa26019d Move the default path definition from msgdb.c to a new pathnames.h, as
required by KNF.  This will also be required to allow msgc to be installed
into ${TOOLDIR} properly.
2001-10-15 22:11:12 +00:00
jmc
7399da0682 Add appropriate ifdefs so tools reachovers build clean 2001-10-05 22:54:51 +00:00
wiz
d6493c16ff Fix typos and wording. 2000-12-04 22:33:52 +00:00
jhawk
52e42eac03 Document paragraph-filling behavior of msg_display{,_add}(), and
document function of msg_table_add(). What a whacko api.
2000-07-06 20:10:42 +00:00
jhawk
4ac74dd2e6 Add msg_*() functions to NAME (they are already in SYNOPSIS), and
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-06 19:30:11 +00:00
matt
fcd0fb118f Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
2000-07-03 02:51:12 +00:00
garbled
faa0b30255 Add FILES and EVIRONMENT sections detailing what files these programs use,
where they live, and how to modify that behavior.
1999-12-31 04:03:18 +00:00
cgd
4515ccfe3e nuke msg_printf() and msg_printf_add(). 1999-07-04 22:55:48 +00:00
cgd
a70b70f98d const-ify strings as appropriate, and convert message 'numbers' from
ints to 'msg's.  'msg' is currently typedef'd as 'const char *', but it'll
become more complex eventually.
1999-07-04 21:30:14 +00:00
cgd
efb4e0892c oops, forgot an _ 1999-07-04 10:39:40 +00:00
cgd
8b6866fc0b privatize msg_beep 1999-07-04 10:35:19 +00:00
cgd
4443f1b7ab nuke msg_{,no}echo, add msg_prompt_noecho 1999-07-04 10:29:30 +00:00
cgd
ed2a9c9df9 nuke msg_prompt_str, msg_prompt_addstr, and msg_table (unused), and make
msg_vprintf private.
1999-07-04 10:13:12 +00:00
cgd
e7861bf936 turn on automatic text layout for the printf and display fns 1999-07-04 09:37:18 +00:00
cgd
e8b59e21bb provide APIs (currently mostly undocumented) to print pre-formatted
(table) text.
1999-07-04 07:40:51 +00:00
cgd
b9b5f1fc26 implement word kill with control-W 1999-06-23 17:42:11 +00:00
cgd
3788a37507 add code to do dynamic message text layout, currently completely disabled. 1999-06-23 17:32:32 +00:00
cgd
beba4bb3e5 replace lots of wclear()/wmove() calls with calls to msg_clear(). wmove()
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-23 09:19:33 +00:00
cgd
82ecc5c4d7 don't bother calculated up MAXSTR, especially since the value calculated
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-22 15:00:37 +00:00
cgd
4b1c7617ba the skeleton now also needs stdlib.h 1999-06-19 19:25:10 +00:00
cgd
49aa92dfc0 don't dereference NULL when thinking about copying the default 1999-06-19 00:40:29 +00:00
cgd
5fa829d0bd teach the message prompting code to use control-U as line kill character.
(not really the right thing, but it already hard-codes backspace and
delete rather than using the terminal settings...)
1999-06-19 00:13:19 +00:00
cgd
a8d01c6140 fix an off-by-one error (it would put up to max_chars plus NUL into the string,
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-06-19 00:00:48 +00:00
veego
635cf4e57c It was a bad idea to call a function 'beep'.
Rename it to msg_beep to avoid conflicts with the new curses.h.
1999-04-25 09:10:07 +00:00
garbled
9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
lukem
dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
lukem
9dee5d2b46 don't install in /usr/share if NOSHARE is defined 1998-09-27 17:22:03 +00:00
tv
482063559a .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
perry
6abf6a014c <stdlib.h> -> <unistd.h> to fix compiler warning 1998-02-03 03:53:39 +00:00
lukem
3c03ef2d87 use CPPFLAGS instead of CFLAGS 1997-10-22 01:47:23 +00:00
lukem
979f7a0097 fix up .Nm usage, getopt returns -1 not EOF 1997-10-19 05:19:15 +00:00
lukem
00c29d5afe don't define WARNS=1 here 1997-10-19 04:23:02 +00:00