Commit Graph

69 Commits

Author SHA1 Message Date
blymn
19f21e4357 Modified input key handling to use libcurses keypad mode to assemble
multi-byte key sequences instead of doing it itself.
2002-04-04 14:11:23 +00:00
phil
9ee53e66b1 Fix bug in AVL tree routines. Correct man page. 2002-03-21 05:15:39 +00:00
tv
081041f2f7 MAX has special meaning in host tools. #undef it first. 2002-03-07 20:43:29 +00:00
ross
2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +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
lukem
b0b0a32ad7 Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv
8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
ross
a15e9b5f48 tweak previous for lp64 so sysinst will compile on alpha 2001-12-08 01:10:37 +00:00
christos
5c04ef3caa Fix for the new curses code. Inspired by changes from MINOURA Makoto. 2001-12-06 16:38:30 +00:00
wiz
d41c96b482 Sort sections, punctuation nits, use standard headers.. 2001-12-01 20:39:13 +00:00
wiz
aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
perry
c50182835e 1) Use standard box drawing characters. It looks a whole lot better
than *'s.
2) On displays that handle color, do a cheesy white-on-blue theme.

As silly as it may seem, many people seem to respond better to color
and nice borders for sysinst.

XXX will rig up a way to do this more cleanly.
2001-11-17 01:12:47 +00:00
tv
36d6a03ffd Formatting cleanup. 2001-11-12 20:26:55 +00:00
bjh21
e0b2c4633d Move hard-coded /usr/share/misc from mdb.c to pathnames.h, in accordance
with KNF.
2001-10-15 22:20:03 +00:00
jmc
7399da0682 Add appropriate ifdefs so tools reachovers build clean 2001-10-05 22:54:51 +00:00
cgd
c2bdafab79 use getprogname() 2001-02-20 23:51:59 +00:00
phil
4867c375a3 Include the definition of PRINTOBJDIR before using it. 2001-01-07 07:18:32 +00:00
phil
0e57605760 Improve a parameter list, add the actual documentation for menuc. 2001-01-07 06:09:19 +00:00
sommerfeld
64cf1af58d Let src/usr.bin build with recursive parallel make..
- add .WAIT and .NOTPARALLEL in a few places
 - change ${MAKE} print-objdir to ${PRINTOBJDIR}
 - convert other ad-hoc forms to use ${PRINTOBJDIR}
2000-12-30 14:54:39 +00:00
mrg
c5ce287448 fix oversight in previous. 2000-12-28 02:07:00 +00:00
mrg
775b57cd01 say "<progname>: Could not initialize curses", with the progname 2000-12-22 02:52:47 +00:00
is
135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
phil
94c7405838 Tweek the "no shortcut" code.
MC_NOSHORTKEY to NOSHORTCUT
   added option "shortcut" to menuc input language.
   added example of this kind of menu in testm.
2000-08-15 02:09:11 +00:00
hubertf
4e87e20dda Changes:
* bring closer to KNF
 * when selecting a item in a menu, call the opt_action() callback with
   a pointer to the struct menudesc, so the callback has a chance to find
   out which item was selected. Having a seperate callback for each
   item is ok for small menus, but not for ones with many objects.
 * Add menu-option MC_NOSHORTCUT to not print letters ("a: ", ...)
   in front of list items. Again, this is for menues with lots of entries
   as e.g. the upcoming sysinst set_timezone() function composes.
 * Fix a long-standing bug WRT pagewise scrolling - the cursor is now
   properly placed one page up/down
2000-08-15 01:01:41 +00:00
wiz
563d6ee1be Add format string to fprintf(). 2000-07-23 22:18:44 +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
thorpej
0687dad67e Make this work again now that curses no longer does an implicit tgetent()
via initscr() by calling t_getstr() with curses' internal terminal info
initialized in setterm() (which is called by initscr()).

XXX THIS IS A HORRIBLE KLUDGE!  ...and I'm almost embarassed to commit it.
XXX It really should be fixed by using normal curses facilities.
2000-04-22 21:34:25 +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
christos
3b943b9c88 declare EXITSTRING 1999-07-26 06:19:01 +00:00
cgd
da4d528c80 need to provide an exit string for dynamic menus. hardcodes "Exit".
not pretty, but no worse than what the code did before.
1999-06-20 20:21:03 +00:00
cgd
8c3bc73ea2 provide the ability to do horizontal centering of menus, and make that
the default.  XXX: currently can't be turned back on for individual menus
if overridden by the menu definition's default setting.
1999-06-20 05:41:45 +00:00
cgd
b12d2926fa provide a way to set the string used for the 'Exit' menu item. 1999-06-20 02:07:18 +00:00
cgd
27ddbc286a size menus without titles correctly. also, correctly position titles so
that they don't have to be coded to include leading spaces.
1999-06-20 01:20:14 +00:00
cgd
96c4c464ea * be more descriptive with the windor/screen too small for menu messages
(say width or height).
* work harder to make menu fit width-wise.  (if necessary, move the menu
  further left, and if that's not good enough exit with an error.)
* move menu system initialization out of process_menu() so that it can
  be called earlier (e.g. by the sysinst main()), since it initializes
  curses and other code might want to access the curses data structures
  before process_menu() is invoked.
1999-06-19 06:38:49 +00:00
simonb
9bdbe15263 Don't frob the interals of a WINDOW*, use the getmaxy() macro. 1999-04-18 03:29:18 +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
phil
11c7d5d3b1 Put back "return value" meaning in option actions accidentally removed
in chanages for dynamic menus.  (Return !=0 means to exit menu dynamically.)
1998-07-23 17:56:00 +00:00
phil
d20940b940 Major restructuring of the runtime code, now supports dynamic menus.
Fixed a bug is scrolling.  Added dynamic menu to test meuns in testm.
1998-07-16 07:08:26 +00:00
phil
4229b1a8cc Fix bugs found in scrolling, make scrolling never leave blank
lines in the menu.
1998-07-03 15:20:30 +00:00
phil
d6e31d7e9d Small tweeks, redoing language for dynamic menus. 1998-07-02 21:46:18 +00:00
phil
3ff44f8429 Stop scrolling of a non-scrolling menu using arrow keys. 1998-07-01 23:02:50 +00:00
phil
5aa748c608 Bug fixes, tweeks to scrolling, beginnings of dynamic menus. 1998-07-01 07:46:02 +00:00
phil
8f97042b69 Fixed a couple of simple bugs, added data returned for arrow keys for
xterm that is different than xterm termcap entry states.  (Does curses
change what is returned for arrow keys?)
1998-06-30 06:57:57 +00:00
phil
2098fd1945 Correct a menu title. 1998-06-29 22:21:03 +00:00
phil
b30b562845 Bug fixes in scrolling menues, better error detection with small screens,
bettern keypad support with suport form multiple key "commands" like
ESC-v for previous page.
1998-06-29 08:46:37 +00:00
phil
0c35cc0adb Tweeks to option lettering ... to allow 51 options per menu. Also
to generate an error if there are more.  (Checkpoint before furthur
changes to recognize more keypad keys.)
1998-06-25 19:57:10 +00:00
phil
1063113ca9 Add scrollable menus. Tweek testm's Makefile to remake if menu_sys.def
is modified.
1998-06-25 09:58:57 +00:00