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
phil
16c5e36010
Add -ltermcap.
1998-06-24 14:46:54 +00:00
phil
ec4d385aa3
Beep if no help is defined for a menu.
1998-06-24 14:44:52 +00:00
phil
21fceead47
Add a online help facility. Each menu can specify a help screen associated
...
with that menu. The help screen is scrollable for long help screens.
The char '?' accesses the help screen as a menu command. Help screen text
is specified in the menu definition file with the menu.
1998-06-24 06:46:23 +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
mrg
9fe37f17a0
use static int instead of static
1998-03-30 02:28:37 +00:00
jtc
9a0063c6d6
Simply include -lcurses instead of -lcurses -ltermcap
1998-02-18 22:47:41 +00:00
perry
cb66b17575
<stdlib.h> -> <unistd.h> to fix compiler warning
1998-02-03 03:51:49 +00:00
cgd
377a82ec74
fgetc() returns 'int'. (char)EOF != EOF on unsigned-char machines.
1998-01-15 22:36:41 +00:00
phil
fe8c89a497
Do screen refresh correctly.
1997-11-14 18:27:17 +00:00
phil
24a09a1420
Make ^L redisplay the screen.
1997-11-14 16:31:45 +00:00
phil
1ec08fd982
Add code for handling NULL return from initscr(). Added "ERROR ACTION"
...
for user code for above error.
1997-11-09 20:59:11 +00:00
lukem
3c03ef2d87
use CPPFLAGS instead of CFLAGS
1997-10-22 01:47:23 +00:00
lukem
1519255e3b
fix up .Nm usage, getopt returns -1 not EOF
1997-10-19 05:08:17 +00:00
lukem
00c29d5afe
don't define WARNS=1 here
1997-10-19 04:23:02 +00:00
mycroft
fe47ecc300
Also need -I. to get menu_defs.h in an obj dir.
1997-10-11 11:49:36 +00:00
mycroft
ffc08ff2c0
Clean this up, and make it work with obj directories.
1997-10-11 11:46:49 +00:00
mycroft
5ec8e0144d
Clean up this garbage.
1997-10-11 11:37:21 +00:00
phil
08d5389ae7
Correct the usage() for reality.
1997-09-26 21:08:05 +00:00
phil
95f3bf39d9
Add a curses based menu compiler system. (Used by the new system install
...
program sysinst.)
1997-09-26 17:54:09 +00:00