summaryrefslogtreecommitdiff
path: root/usr.bin/menuc
AgeCommit message (Collapse)Author
2021-11-07fix few typos.andvar
2019-12-03Fix typo in ad clause. Ok perry@.uwe
2019-06-23Use OPT_NOMENU instead of -1christos
2019-06-23use calloc properly.christos
2019-06-23don't cast malloc.christos
2019-06-23define as hex and make MC_VALID smaller so it fits in a short.christos
2019-06-23Menu 0 does not exist anymore (it is now OPT_NOMENU), so emit an emptymartin
menu defintion for it.
2019-06-23Use OPT_NOMENU as error return for new_menu (instead of old hard coded -1).martin
Update man page for the OPT_NOMENU change.
2019-06-22Conserve space: make ints to shorts and make OPT_NOMENU 0 instead of -1christos
so we don't require initializing it.
2019-04-12Backout previous - our pool is zeroed, no need to reinitializ here.martin
2019-04-12new_menu: add missing initializations - we might be using a previouslymartin
freed menu entry which has not been zeroed.
2019-02-25Add an option to supress the vertical space between menu title andmartin
menu items.
2019-02-16Typo in member variable namemartin
2019-02-16Document return values from menu items opt_action functions, add amartin
new variant: -1 when functions have fundamentally changed the menu definition on the fly and the processing functions needs to restart without looking at the old state (or stale cached pointers).
2019-02-06Provide an accessor for the menu description structure by manu identifier.martin
Usefull for dynamic menus where you want to change details on the fly "from the outside" (i.e. while not in one of the callback functions).
2019-01-09Allow argument expansion in menu titles as well.martin
2019-01-06Fix a potential NULL deref in previous - some menus start up with nomartin
"opts" array allocated yet.
2019-01-04Add an option for single (disabled) menu lines to have no shortcut.martin
2019-01-02If a menu starts with disabled options, skip those and start at themartin
first enabled one instead.
2018-11-21Try to provide the typesetting help requested.uwe
2018-11-21Add (optional) support for expanded static menu texts - that is: whatevermartin
the application programmer defines as expansion, e.g. to implement parameter substitution. While here add rudimentary documentation of the dynamic messages feature (so at least the parser and the syntax documented here are in sync). The man page could use some typesetting help...
2018-01-23drop main() prototypesevan
2017-07-03Remove workaround for ancient HTML generation code.wiz
2013-10-18avoid redefinitionschristos
2012-04-21Add capfile(5) to describe the termcap format.roy
Adjust various man pages and other documentation to point to capfile(5) instead of termcap(5). Remove getcap(3) as curses hasn't been building it for a long time. Punt wrterm.c as tset no longer uses it.
2012-03-06Remove the advertising clause and appease the eye a bit (still not good, butmbalmer
better). Almost no functional change.
2011-09-06Mark __menu_initerror as dead in the output.joerg
2009-10-29option noinputchristos
2009-07-11mandoc(1): -width is redundant for a item listjoerg
2009-04-20define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160drochner
2009-04-14Enable WARNS=4 by default for usr.bin, except for:lukem
awk bdes checknr compile_et error gss hxtool kgetcred kinit klist ldd less lex locale login m4 man menuc mk_cmds mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh string2key telnet tn3270 verify_krb5_conf xlint
2009-03-10Specify width for tag list.joerg
2009-03-09Fix preamble to match order set out by mdoc(7). Discussed with wiz.joerg
2008-01-16Fix PR37377 from Devon O'Dell: num_menus can be referenced without beingtls
emitted if dynamic menus are not enabled.
2006-10-23Fully initialize the last element of menu_def[].he
2006-06-17Another mispelling fix. I should have done these all in one commmitreed
but I was editing several files and didn't realize the multiple were all in one file.
2006-06-17Fix typo (or mispelling).reed
2006-06-17Fix mispelling.reed
2006-02-20Allow menu entry option names to be code fragments that (should) calldsl
wprintw(menu->mw, ftm, args) to generate the menu label. Allows static menu labels to contain the current value (like a lot of the dynamic menus do). Correct width calculations, and bound menu table lookup.
2005-02-11White space nit- don't put a space before/after increment/decrementsimonb
operators.
2004-09-17In procese_menu, make sure we initializie the menuswrstuden
_before_ we access the MENUS macro. Otherwise we get a segfault.
2004-09-17Catch up with current menuc.wrstuden
2004-09-17Scoot a menu so it fits better in an xterm.wrstuden
2004-09-17Add parenthesis to silence a compiler warning.wrstuden
2004-08-14Call doupdate() before copying out of stdscr (avoids PR 26660)dsl
Delete a diagnostic variable.
2004-08-02Sort sections; avoid to mark up punctuation unnecessarily; use \*[Lt]\*[Gt]wiz
instead of <>; use Sq.
2004-08-02Support menu windows that preserve the underlying screen contents.dsl
(Needs a libcurses fix as well). No need to ponce about with __m_endwin (to remember we've done endwin()), the old recovery was wrong in any case - but I've left something that will do an explicit redraw. Allow the 'help' text to be from a variable (and hence translated). Fix the display of help so that the screen underneath is actually cleared. Preserve the screen contents while displaying help - redraw is too hard. Use endwin(); doupdate(); to do the full refresh when ^L is typed. Move menus up the screen if they would hit the bottom with too few lines to show an item and the scroll text (happens with big titles). Make 'y=0' center the window vertically - use of 0 means you can't have a menu starting on the topline, but this is unlikely to be a problem. Make all the menu options settable from the control file, not just from dynamic menus. Redo menu option list part of man page.
2004-07-18Make '0' be a valid numberdsl
2004-06-20Completely rework how tools/compat is done. Purge all uses/references tojmc
_NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different') Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc). Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9. Fixes PR's: PR#17762 PR#25944
2004-02-29Allow menu boxes to be forced down the screen if the message text is long.dsl