📄 changes
字号:
-- $Id: CHANGES,v 1.87 2003/12/07 20:24:23 tom Exp $-- T.E.Dickey <dickey@his.com>This version of dialog was originally from a Debian snapshot. I've done thisto it:2003/12/07 + correct infinite loop in yesno widget when "--defaultno" option is combined with "--no-cancel" (Debian #223077).2003/11/30 + suppress double-quotes added for "--help-status" option if the string does not contain any special characters.2003/11/26 + add samples/sourcemage.rc, for comparison with slackware.rc + add "--insecure" option (request by Sean Mathews DrWho@f34r.com). + make "--defaultno" option apply to widgets which use OK/Cancel buttons as well (Debian #209030). + improve documentation of exit-codes for each widget in the manpage (Debian #217926). + add option "--keep-window" to suppress repainting after completing each widget (request by Ingo van Lil <inguin@gmx.de>). + add options "--yes-label" and "--no-label" to allow override of the "Yes" and "No" strings (request by Christoph Zwerschke <cito@online.de>). + add option "--help-status" to allow script to restore a checklist or radiolist after processing an item-help string (Debian #209031). + modify width-calculation for non-formatted text to ensure it is wide enough for the longest word in the text (patch by Andrew Gaul <andrew@gaul.org>). + modify dlg_index_columns() to count a newline as a single cell rather than 2 for the normal curses case. This fixes an off-by-one for the text-justification, shown in screen 2 of msgbox1 sample script. + fix dlg_char_to_button(); 2003/09/10 changes made it incorrectly ignore case of the labels. + change calendar's use of arrow keys so they are (as before 2002/6/22) interpreted within the day-grid as movement within that grid (request by David Anders <dave123@abcsinc.com>). + correct missing initialization of last_getc variable in dlg_getc() (report/analysis by Victor Wodecki). + modify main program to make dialog --no-shadow --print-maxsize work. Normally dialog prints the screen size after subtracting the area reserved for shadows, but some applications may need the actual screen size (Debian #213424). + several related changes (Debian #213425): + separate the examples using "--stdout" and "--output-fd" from the normal usage examples. + add "--input-fd" option, provide a sample of its use. + modify init_dialog() to use initscr() unless a "--stdout" option was used. Some scripts relied on the coincidence that redirecting standard output from dialog would "work". Before this change init_dialog() assumed that redirected standard output was synonymous with "--stdout" option (not the intended behavior). + modify command-line parsing to look for "--stdout" and "--stderr" options first, allowing only one. + add a check for an environment variable $DIALOG_TTY which provides the older behavior, i.e., try to open the terminal directly if stdout is redirected. + interface changes, to make libdialog simpler to use: + rename all of the internal functions to begin with "dlg_", but provide compatibility with older names if the application defines __DIALOG_OLD_NAMES__. + add dialog_version() function, and corresponding DIALOG_VERSION and DIALOG_PATCHDATE definitions to dlg_config.h + eliminate remaining global variables such as screen_initialized in favor of dialog_state and dialog_vars. + move some data such as dialog_vars.output to dialog_state, since they are normally not reset between widgets. + change interfaces of dialog_yesno() and dialog_checklist() to use dialog_state.defaultno and dialog_vars.separate_output, making it simpler and more consistent. + improve configure script and related definitions: + add "--with-libtool" option to provide shared library support by libtool. + rename generated "config.h" to "dlg_config.h", so it can be installed without naming conflict. Added "dlg_config.h" to install-lib rule. + modify configure script and makefile to use EXEEXT and OBJEXT. + add "--enable-widec" option to control whether wide-curses features are compiled-in, rather than check for the existence of those in the curses library. This allows building with HPUX curses, which has abandoned legacy features while not quite supporting X/Open curses. + add configure check for getbegx(), etc., which are not provided on all platforms. + update config.guess, config.sub2003/10/02 + update hu.po (Arpad Biro). + revert part of the 2003/08/18 change to "--stdout" option. Using stderr for screen output does not work well on several platforms since stdout's settings are affected (report by Kent Robotti).2003/09/24 + modify tailbox to allow it to display files with arbitrarily long lines. + fix an infinite loop in tailbox, broken when making interface changes to dlg_getc() (report by Ingo van Lil). + amend fix for "--and-widget" to not treat "---" as an option (report by Kent Robotti). + updated es.po (Santiago Vila).2003/09/10 + correct "RENAMED" result from inputmenu widget, which did not reset the result buffer, and did not account for scroll-offset (Debian #209336). + modify button, menu and checkbox logic that matches a character to the beginning of a text field to support wide-characters (completes Debian #195674). + modify configure script to not use "head -1".2003/08/30 + modify searchbox popup in textbox widget so one can simply press return on an empty input to cancel the popup. + modify error reporting to avoid clearing screen if a problem is found in the ".rc" file. + add color/attribute combinations for form widget (based on patch by Reznic Valery). + combine rc-file colors, attribute- and color-tables to obtain a single table for color values, which requires less work to add new entries. + modify fselect widget to make back-tab work again, since it was broken by the rewrite of dlg_edit_string(). + modify howmany_tags() so it will quit searching when it finds any option, not only "--and-widget" (Debian #206636). + correct call to dlg_print_text() in print_line(), which did not account for hidden characters (report/patch by David Poole <davep@portsmith.com>). + modify print_button() to display properly if locale defines ok/cancel or yes/no buttons that contain multibyte characters.2003/08/20 + correct an indexing error when deleting from the end of a line using KEY_DC; it happened to work on Linux because malloc() clears memory like calloc(). + add '\r' to case statement where '\n' is translated to KEY_ENTER to work around defect in NetBSD curses. + modify configure check for getparyx(), etc., which are implemented by NetBSD curses as functions rather than macros. + correct configure check for term.h, which may be <ncursesw/term.h> if ncursesw development headers are installed, but not ncurses development headers. Or they may not coincide (Debian #206287).2003/08/18 + modify checkbox.c and menubox.c to display tags properly if they contain wide-characters. + better solution for initializing curses when "--stdout" option is used, e.g., use stderr for the output if it is a tty. Also correct the error handling, so dialog exits with an error if it cannot find a way to do output (Debian #205509). + modify sample scripts to use consistent definition of $DIALOG (Debian #205508). + add UTF-8 examples msgbox4-utf8, inputbox6-utf8 (from Tomohiro KUBOTA as testcases for Debian #195674). + modify print_line() to work with wide-characters, e.g., so it handles wrapping for double-width characters. + cache results from multibyte character indices, speeds up cursor movement. + modify form widget to support scrolling and mouse-selection. + add form widget (based on patch by Reznic Valery). + correct mouse-handling for inputmenu widget. + corrections to menu.c: location of clearing operation, and height of rows in code for older ncurses versions (patch by Reznic Valery <Valery_Reznic@icomverse.com>). + improve logic that compensates for xterm's alternate-screen by cancelling the rmcup/smcup strings after the rmcup has been issued. That ensures that dialog will not clear the screen on exit (report by Javier Kohen). + modify initialization between widgets to retain the values for the --aspect, --separate-widget and --tab-len options. + add --separator as an alias for --separate-widget (Xdialog). + correct handling of Xdialog's --icon and --wmclass options, whose parameter was not ignored. + correct logic for --separate-widget so its string is written before each output, rather than only for --and-widget option (report by Javier Kohen <jkohen@coresecurity.com>). + improve limit-check in center_label() for buttons.c (report by Tor Vidar Havstad <tor@hdd.no>). + correct layout of --menu widget, which reduced display width due to logic for --inputmenu being applied whether or not that configuration was used (reports by Javier Kohen <jkohen@coresecurity.com>, Dimitar Zhekov <jimmy@is-vn.bg> and MAL <mal@komcept.com>). Fixes Debian #201215. + modify gauge widget to support --begin option (Hans-Joachim Baader <hans-joachim.baader@cjt.de>). + updated pl.po (Jaroslaw Swierczynski <swiergot@intersec.pl>) + hide cursor while painting gauge. + add auto-sizing logic to gauge widget (reports by Javier Kohen <jkohen@coresecurity.com> and Robert Schubert <xbert@myrealbox.com>).2003/07/20 + rewrote inputstr.c, allowing it to enter and display wide-characters. Some nonprinting characters such as control/B can be edited as well. + modify timebox to allow user to type numbers into the fields. + change interfaces of dlg_getc(), mouse_wgetch(), etc., to add parameter that returns whether the result is really a function-key. This is needed to work with wide-character curses. + correct computation of week-number in calendar widget (report by Heiner Lamann). + updated configure script macros: + suppress -Winline with gcc 3.3, since it is broken. + fix caching bug in CF_UTF8_LIB + improved script for CF_BUNDLED_INTL. + update config.guess, config.sub2003/03/08 + add null-pointer checks to some malloc calls which were overlooked. + correct logic in dlg_add_result(), which did not copy content of non-allocated buffer to the first allocation (report by Daniel Dupont <daniel.dupont@dldt.net>).2003/03/02 + correct an uninitialized value in dlg_add_result() (Debian #182683).2003/01/30 + corrected print_line(), which subtracted the margin twice from the right-limit, making a string wrap unnecessarily (Debian #168823). + correct initial limit-check for arrows in checklist.c, which used the wrong variable, showing the bottom arrow when it should not (Debian #168823). + modify driver to always call show_result(), to simplify updates. + fix several memory leaks, important if dialog is run with a large number of widgets (report by albert.veli@telia.com forwarded by Santiago Vila <sanvila@unex.es>). + check if the screen output is actually to the terminal before trying to suppress xterm's alternate screen mode (see 2000/01/18) (report by David Oliveira <davidoliveira@develop.prozone.ws>). + use dialog_vars.input_result consistently to return the text which is printed after a widget completes. In many cases, dialog now allocates enough space to hold the text, rather than use a fixed buffer. The checklist widget was writing directly to the output to avoid limits of the fixed buffer. + modify dialog.c to also write dialog_vars.input_result if the Help-button was pressed (request by Amon Ott <ott@compuniverse.de>). + add hu.po (Arpad Biro <biro_arpad@yahoo.com>). + update fr.po, pt.po, pt_BR.po to add strings for "Help" button (patch by Frederic L W Meunier). + fix off-by-one error in menu.c, checklist.c (reported by Tomasz Wasiak <tjwasiak@komputom.com.pl> 2002/9/15 and others: Andrew Gaul <andrew@gaul.org> 2002/11/12, Tobias C Rittweiler 2002/11/19, Arpad Biro <biro_arpad@yahoo.com> 2003/1/21). + updated configure script, improving checks for ncurses in various locations, updated NLS script to match lynx. Added --with-curses-dir option. > Tobias C Rittweiler: + make ifdef in mousewget.c consistent with usage in dialog.h + use beep() rather than flash() in dlg_edit_string(), for consistency with the other functions. + change order of buttons so extra button falls between Ok/Cancel. + fix so "dialog --print-maxsize" exits from curses. + add --inputmenu option.2002/08/14 + modify checklist.c and menubox.c to treat the extra button like the "Ok" button by making dialog print the chosen items (request by Tobias C Rittweiler). + add examples checklist6 and menubox6 to illustrate the --colors option. + implement -colors option, which allows one to highlight words in the titles and most text areas with color or video attributes (adapted from patch by Tobias C Rittweiler). + add examples inputbox4, inputbox5 to illustrate how to use the --output-fd option, and how to use dialog without any temporary file at all. + add --output-fd option (Debian #153984). + documented vi-style keys for calendar, textbox widgets in manpage.2002/06/22 + improve mouse handling, e.g., for up/down scrolling in calendar, checklist, etc. + adapted patch by Tobias C Rittweiler <tobrit@freebits.de> to add
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -