./misc/dialog, Display dialog boxes from shell scripts

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 1.3.20200228, Package name: dialog-1.3.20200228, Maintainer: pkgsrc-users

Dialog is a program that will let you to present a variety of questions
or display messages using dialog boxes from a shell script. Currently,
these types of dialog boxes are implemented:
yes/no box, menu box, input box, message box, text box, info box,
guage box, checklist box, and radiolist box.

Required to build:

Master sites:

SHA1: b3b8e39c65f7c519e0f5fe65fd6ef7f57a044743
RMD160: 0f0c8b7c4108d19f4d9fa3d7209f88ec17881cd9
Filesize: 531.761 KB

Version history: (Expand)

CVS history: (Expand)

   2020-03-23 17:04:34 by Stephen Borrill | Files touched by this commit (2) | Package updated
Log message:
dialog: update to 1.3-20200228

Changes since 1.3-20190211

        + updated configure-macros, to work around ncurses vs xcode's c99 -W
        + update config.guess

        + updated configure-macros.
        + update config.guess

        + correct rc-file lookup of "default" color (report by Grady \ 
          cf: 2019/09/24).
        + fix several issues in the sample scripts reported by shellcheck.
        + fix a few spelling errors reported by codespell (report by Jens
        + correct check for return-value of isblank(), which is not necessarily
          0/1 (report/patch by Paul Cercueil, Peter Korsgaard, cf: 2018/05/31).

        + amend change for parsing command-options before calling init_dialog,
          to handle --no-shadow, etc., which are initialized in init_dialog
          (report by Paul Cercueil, cf: 2018/06/21).
        + add dlg_trace_va_msg to manpage, symbol files.

        + improve layout of several widgets' data area when maximizing.
        + modify dselect/fselect to work with autosizing (Debian #915949).
        + add error messages from dlg_exiterr() to trace file.
        + improve manual page description of escaping in key-bindings.
        + modify inputmenu to recognize the "Cancel" button and keys \ 
bound to
          that feature while editing a renamed menu item.
        + revert one change, in form.c to the --last-key feature (Debian
        + correct ordering of libraries in configure-script, which appended
          in a case where it should have prepended.
        + update config.guess, config.sub

        + improve dialog-config script's filtering of -L options using the
          linker default directories.
        + improve dialog-config script, adding a -L option corresponding to
          the configure --libdir option if it would be a duplicate (report by
          Andrew Kosteltsev).
        + build-fix for configure --disable-trace
        + updated pt.po from

        + allow for underline- and reverse-video flags in the ".rc" file
          (integrated patch by Richard Robbins).

        + amend change to --last-key feature to eliminate an unnecessary
          separator (report by Gabriele Balducci).

        + extend --last-key feature to the remaining widgets which have
          ok/cancel buttons, and add logic to map keys which happen to be
          bound to ok/extra/cancel/help to simulate a button-press on the
          corresponding button (report by "sgewrk").

        + further fixes for dialog-config.in (report by Andrew Kosteltsev).

        + modify dialog-config.in so that setting prefix or exec-prefix to
          a given value with --prefix=VALUE or --exec-prefix=VALUE has the
          expected result of changing bindir, etc.
        + correct substitution for $LIBS value in dialog-config.in (report by
          Andrew Kosteltsev).

        + modify dlg_will_resize() and dlg_result_key() functions to reduce
          the chance that dialog exits on a SIGWINCH (Debian #930775).
        + make test-package for the development headers/library
        + add --libs-only-L, etc., to dialog-config script (prompted by
          discussion with Andrew Kosteltsev).
        + fix a memory leak in gauge widget (Andrew Kosteltsev).
        + minor fix for CF_GCC_WARNINGS
        + update config.guess, config.sub
   2019-11-03 18:04:28 by Roland Illig | Files touched by this commit (71)
Log message:
misc: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
   2019-06-22 13:37:14 by Nia Alarie | Files touched by this commit (9)
Log message:
Use https for all invisible-island.net HOMEPAGEs.
   2019-02-15 20:53:00 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
dialog: update to 1.3.20190211.

Provided by Thomas Dickey in private email.

	+ modify to work with ncurses' threaded-library, which does not allow
	  assignment to LINES/COLS (report by Marcus Roeckrath).
	+ correct clearing after text in progressbox from 2018/06/21 changes
	  for resizing (reports by David Boyd, Alan Somers).
	+ improved configure macros CF_GNU_SOURCE, CF_POSIX_C_SOURCE,
	+ update config.guess, config.sub

	+ convert ja.po to UTF-8 for consistency (suggested by Stanislav
	+ repair mis-encoded hi.po (report/analysis by Stanislav Brabec).

	+ improved configure macros CF_CC_ENV_FLAGS, CF_LD_RPATH_OPT,
	  CF_WITH_VERSIONED_SYMS from ncurses
	+ add ast.po, from

	+ improve file-offset computation in textbox.c (Werner Fink).
	+ fix an overlooked case with real_auto_size() to maximize when
	  height or width is given as -1.
	+ build-fixes for configure options "--disable-Xdialog2" and
	+ add traces for each widget to show its parameters.
	+ modify color scheme for mixedgauge to use the dialog window colors,
	  like the captions.
	+ fix a too-small malloc in the mixedgauge widget.
	+ fix a use-after-free in dlg_remove_callback().
	+ improve handling of SIGWINCH for several widgets (Debian #865840).
	  + menubox, the point of the Debian report was that it would be nice
	    to increase the window size if the terminal size increases.  Did
	    that as a special case less problematic than decreasing the
	    terminal size.  Added samples/menubox11 to demonstrate by
	    comparison with menubox10 a problem with debconf which puts extra
	    newlines in the caption that interfere with autowrap.
	  + progressbox and derived prgbox, programbox, now handle resizing.
	  + yesno, window was cleared
	+ add dlg_ttysize() to support new options, allowing scripts to obtain
	  some text-formatting details without initializing the terminal.
	+ add options --print-text-only, and --print-text-size for scripts that
	  adjust the widget size according to how the captions are formatted.
	+ improve dialog.pl:
	  + add demo.pl, to demonstrate the functions
	  + quote/escape string parameters passed to dialog.
	  + ensure all "integer" parameters are really integers.
	  + use actual screensize for list captions rather than assuming 24
	+ when trimming blanks, treat unconverted tabs the same as spaces.
	+ correct parameter to test when trimming blanks from the script,
	  e.g., with "--trim" (report by Jarno Suni).
	+ improve documentation of the various whitespace-filtering options,
	  to show which take precedence (Debian #867536, cf: Debian #102942).
	+ modify msgbox.c, yesno.c to bind SCROLLKEY_BINDINGS before
	  TRAVERSE_BINDINGS so that up/down arrow will by default scroll the
	  message up/down rather than be aliases for tab-traversal (report by
	  Fredrik Kers).
	+ modify dump_one_binding() to show when a binding is overridden.
	+ improve format of trace-file, making comment-syntax consistent,
	  as well as showing argv-splitting as a series of comments.
	+ modify dlg_string_to_argv() to change the quoting behavior to be
	  more consistent with shell behavior (patch by Denilson Sa Maia).
	+ modify dlg_getc() to return ESC when a timeout expires, notifying
	  callers that a quit occurred rather than exiting the application
	  (suggested by Rodrigo Freitas).
	+ modify handle_inputs() to ensure cursor-visibility is restored when
	  there is no input character available (report by Guillaume Vareille).
	+ improve comment in manual page regarding which widgets can use the
	  "--help-button" (prompted by discussion with Csanyi Pal).
	+ add a check for valid object pointer in tailbox's main loop since
	  the getc-callback may have been freed within ui_getc.c (report by
	+ improved configure macros for ncurses: CF_GNU_SOURCE, CF_SHARED_OPTS,
	+ improved configure script checks for groff vs man2html:
	+ build-fix from lynx for AM_WITH_NLS configure macro
	+ update config.guess, config.sub

	+ update ftp url in test-packages.
	+ modify test-packages to use recommended compiler/linker flags.
	+ improved configure macros AM_WITH_NLS, CF_CC_ENV_FLAGS,
	+ update config.guess, config.sub
   2017-05-17 12:39:43 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Updated dialog to 1.3.20170509.

	+ improved configure macros CF_ADD_CFLAGS, CF_CC_ENV_FLAGS, and
	+ updated hu.po and tr.po from
	+ update config.guess, config.sub
   2017-02-07 14:00:49 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Updated dialog to 1.3.20170131.

	+ use DLG_TRACE macro consistently to make "--disable-trace" configure
	  option work.
	+ modify buildlist widget to support option "--reorder" for to allow
	  user to reorder the data based on the sequence of selections
	  (discussion with Paraic O'Ceallaigh).
	+ fill background color on unused parts of buildlist.
	+ fix a minor error in buildlist which let pageup switch columns.
	+ change several calls to dlg_trace_msg to prefix with "#" to make
	  the trace logs more consistent for parsing.
	+ add samples/run_test.sh
	+ further improve performance with very long command-lines by changes
	  to howmany_tags().
	+ modify dlg_string_to_argv() to convert escaped double-quotes to
	  plain double-quotes when within a double-quoted string.
	+ modify makefile to apply CFLAGS to linking
	+ modify dlg_string_to_argv() to ignore escaped newlines except when
	  quoted, fixing a problem with samples/checklist9.
	+ interpret $DIALOGOPTS before expanding "--file", etc., to allow
	  the environment variable to turn on tracing in that process.
	+ improve performance when processing very long command lines, e.g.,
	  using "--file" by changing dialog_opts[] to an array of pointers to
	  the expanded argv[] (discussion with Lars Tauber).
	+ modified autoconf macros
	  + CF_CC_ENV_FLAGS amend the last change to move only the
	    preprocessor, optimization and warning flags to CPPFLAGS and
	    CFLAGS, leaving the residue in CC.  That happens to work for gcc's
	    various "model" options, but may require tuning for other compilers
	  + CF_LARGEFILE workaround for clang exit-code vs warnings
	  + CF_MATH_LIB quiet strict gcc warning
	  + CF_WITH_LIBTOOL fix a few places in configure/build scripts where
	    DESTDIR and rpath were combined
	  + CF_XOPEN_SOURCE add "uclinux" to list of Linux's
	+ update config.guess, config.sub
   2016-09-01 18:02:22 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Updated dialog to 1.3.20160828.

	+ improve parsing and trace for "bindkey", to convert space to/from
	  "\s", as well as handle octal escapes for single byte characters.
	+ change explicit checks for space character used for select or toggle
	  to make this rebindable to "TOGGLE" (prompted by discussion with
	  Paul van Tilburg).
	+ add default bindings for cursor left/right to formbox.  The cursor
	  left/right cases were replaced with rebindable symbols in 2005/12/07
	  without providing these keys as default values (report/patch by
	  Miroslav Lichvar).
	+ modified autoconf macros
	  + CF_PROG_LINT add cpplint to programs to use; drop ad hoc tdlint and
	  + CF_CC_ENV_FLAGS don't limit the check to -I, -U and -D options,
	    since the added options can include various compiler options before
	    and after preprocessor options.
	  + CF_GNU_SOURCE recent glibc (Debian 2.23-4 for example) has
	    misordered ifdef/checks for new symbol _DEFAULT_SOURCE, producing
	    warning messages when only _GNU_SOURCE is defined.  Add a followup
	    check to define _DEFAULT_SOURCE.
	  + CF_XOPEN_SOURCE use _GNU_SOURCE for cygwin headers, tested with
	    cygwin 2.3, 2.5 (patch by Corinna Vinschen).
	+ mention --no-collapse option in manual page description of
	  --tab-correct option.
	+ update config.guess, config.sub
   2016-05-05 13:23:45 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Updated dialog to 1.3.20160424.

	+ fix a special case in drawing shadow on a line-drawing cell where the
	  alternate-character set flag was lost (report by Martin Kravec).
	+ fix a regression from 2015/05/13 changes for escaping; it is
	  necessary to retain backslashes within quotes to make "\Z" escapes
	  work (report by Marcin Krol).
	+ fix test package for RPMs; changes in 2015 omitted symbolic links
	  for the library.
	+ fix typo in help message for "--buildlist" (report by Rihards Olups).
	+ modified autoconf macros
	  + CF_PROG_AR, CF_AR_FLAGS added to improve check for archive tool.
	  + CF_LD_RPATH_OPT, change FreeBSD to use -Wl,-rpath rather than
	    -rpath option.  According to FreeBSD #178732, either works since
	    FreeBSD 4.x; however scons does not accept anything except the
	    -Wl,-rpath form.
	  + CF_WITH_NCURSES_ETC, change from ncurses to check for pthreads