12024-05-27 1.0.3 2 3 Utility: 4 change: --form and --mixedform do not print field value to output fd if 5 <fieldlen> is <= 0 (readonly). To note --mixedgauge continues 6 to print field value if <flag> = 2 (readonly) unless <fieldlen> 7 is <= 0 (as described previously). 8 9 102024-04-11 Version 1.0.2 11 12 Utility: 13 improvements and changes for --form and --mixedform: 14 * add: <maxletters> 0 sets <maxletters> like <fieldlen>. 15 * add: <fieldlen> 0 sets <fieldlen> like <init> width and readonly. 16 * change: <maxletters> 0 was an error (remains error in lib). 17 * change: <fieldlen> 0 was an error (remains error in lib) 18 (<fieldlen> 0 and <init> "" is still an error.). 19 20 Library and implicitly utility: 21 * add: Ctrl-l to redraw dialog. 22 Request stable@freebsd.org January 2024. 23 * add: -, +, Ctrl-p, Ctrl-n for several dialogs. 24 +, - request for menus, private feature request. 25 Ctrl-p, Ctrl-n for menu, request hackers@freebsd.org February 2024. 26 * fix: escaped text ending with an escape symbol. 27 * change: truncate mixedgauge long (over the screen/minibars) 28 minilabels adding "...". As a result, avoid check-size error. 29 https://gitlab.com/alfix/bsddialog/-/issues/6. 30 * change: invert UP/DOWN keys to set a rangebox value. 31 32 332023-11-16 Version 1.0.1 34 35 Library Internal Refactoring: 36 * add: arrow macro handlers. 37 * change: Box-drawing characters, from utf8 to wide chars to avoid to 38 handle "env NCURSES_NO_UTF8_ACS=1". 39 Request https://bugs.freebsd.org/274472, 40 Rationale https://reviews.freebsd.org/D42380. 41 422023-08-01 Version 1.0 43 44 Utility: 45 * add: comments to --save-theme output file. 46 * add: blink, halfbright, highlight to --save-theme and --load-theme. 47 * add: theme.menu.[f_]prefixcolor to --save-theme and --load-theme. 48 * add: --datebox-format <d/m/y|m/d/y|y/m/d> to set --datebox UI. 49 * add: --help-print-items (--help-status becomes alias). 50 * add: --text-escape (--colors becomes alias). 51 * add: new escapes \Zd, \Zk, \Zs, \ZD, \ZK, \ZS, for --text-escape. 52 * add: env NO_COLOR, to set blackwhite theme. 53 * add: $HOME/.bsddialog.conf startup theme file. 54 * add: env BSDDIALOG_THEMEFILE startup theme file. 55 * add: --left1-button <label>. 56 * add: --left2-button <label>. 57 * add: --left3-button <label>. 58 * add: --right1-button <label>. 59 * add: --right2-button <label>. 60 * add: --right3-button <label>. 61 * add: dynamic exit codes. 62 - add: --error-exit-code. 63 - add: --ok-exit-code. 64 - add: --cancel-exit-code. 65 - add: --help-exit-code. 66 - add: --extra-exit-code. 67 - add: --timeout-exit-code. 68 - add: --esc-exit-code. 69 - add: --left1-exit-code. 70 - add: --left2-exit-code. 71 - add: --left3-exit-code. 72 - add: --right1-exit-code. 73 - add: --right2-exit-code. 74 - add: --right3-exit-code. 75 - add: env BSDDIALOG_ERROR. 76 - add: env BSDDIALOG_OK. 77 - add: env BSDDIALOG_CANCEL. 78 - add: env BSDDIALOG_HELP. 79 - add: env BSDDIALOG_EXTRA. 80 - add: env BSDDIALOG_TIMEOUT. 81 - add: env BSDDIALOG_ESC. 82 - add: env BSDDIALOG_LEFT1. 83 - add: env BSDDIALOG_LEFT2. 84 - add: env BSDDIALOG_LEFT3. 85 - add: env BSDDIALOG_RIGHT1. 86 - add: env BSDDIALOG_RIGHT2. 87 - add: env BSDDIALOG_RIGHT3. 88 * add: undocumented envs for bsdconfig(8) compatibility. 89 - env BSDDIALOG_COMPATRC for use_shadow setting. 90 - env BSDDIALOG_ITEM_HELP to add/set exit code. 91 * change: rename themes --theme <3d|blackwhite|flat>. 92 * change: --no-names and --no-descriptions mutually exclusive (via lia). 93 * change: quote only checklist output items if necessary. Previously 94 also radiolist item. 95 * change: dialogs with user input print always values except with ERROR, 96 ESC, Cancel. Previously the situation was quite heterogeneous. 97 * improve: DIAGNOSTIC messages adding fmt string errors. 98 * improve: disable theme setting (opt and env) with no-color terminals. 99 * improve: menus on|off status (strcasecmp, diagnostic, real off check). 100 * improve: --bikeshed with button delimiter and --date-format. 101 * improve: --textbox accepts button options. 102 * improve: Forms with Help button. 103 - print "HELP" (like menus). 104 - accept --help-list-items. 105 - accept --help-print-name. 106 * fix: --load-theme attributes. 107 * fix: --clear-screen with --and-dialog. 108 * delete: --theme <bsddialog> (partially implemented). 109 * delete: --esc-return-cancel (replaced by new env and option). 110 * delete: --generic-button1 (replaced by --right1-button). 111 * delete: --generic-button2 (replaced by --right2-button). 112 * refactor: modularize in more files (main, cli, builders, theme). 113 114 Library: 115 * add: bsddialog_inmode(). 116 * add: bsddialog_clear(y) for utility --clear-screen. 117 * add: bsddialog_refresh() for utility terminal mode options. 118 * add: conf.date.format="d/m/y"|"m/d/y"|"y/m/d" to customize 119 bsddialog_datebox() UI (boxes) with a date format. 120 * add: 'const char *end' to bsddialog_gauge(). 121 * add: draw focus on the shortcut-key-selected button at exit. 122 * add: escapes for conf.text.highlight \Zd, \Zk, \Zs, \ZD, \ZK, \ZS. 123 * add: other theme flags. 124 - BSDDIALOG_BLINK. 125 - BSDDIALOG_HALFBRIGHT. 126 - BSDDIALOG_HIGHLIGHT. 127 * add: generic buttons. 128 - conf.button.left1_label, BSDDIALOG_LEFT1 return value. 129 - conf.button.left2_label, BSDDIALOG_LEFT2 return value. 130 - conf.button.left3_label, BSDDIALOG_LEFT3 return value. 131 - conf.button.right1.label, BSDDIALOG_RIGHT1 return value. 132 - conf.button.right2.label, BSDDIALOG_RIGHT2 return value. 133 - conf.button.right3.label, BSDDIALOG_RIGHT3 return value. 134 * add: unused bsddialog_menugroup.min_on for future features. 135 * add: theme.menu.f_prefixcolor and theme.menu.prefixcolor. 136 * improve: check (when possible) API pointers. 137 * improve: circolar buttons with left and right keys for msgbox, yesno, 138 menus, rangebox and pause. 139 * improve: bsddialog_textbox() handles conf.buttons. 140 * improve: bsddialog_datebox() a box change affects the others as well. 141 * improve: bsddialog_geterror() with fmt strings. 142 * change: API NULL strings handled like "", except gauge *sep and *end. 143 * change: menus and form less restrictive with text, hide text with 144 little screens (same behavior as other dialogs). 145 * change: mixedgauge BSDDIALOG_MG_BLANK does not draw minibar but prints 146 minilabel. The change allows mixedgauge to add sections. To restore 147 the previous behavior setting minilabel to "". 148 * change: check/set bsddialog_gauge() perc max 100. 149 * change: check/set bsddialog_mixedgauge() mainperc max 100. 150 * change: conf.menu.no_name and conf.menu.no_desc mutually exclusive. 151 * change: bsddialog_pause() sec -> *sec to know remaining time at exit. 152 * change: add *focusitem to bsddialog_form() like menus. 153 * change: "pointer" values are always set except when BSDDIALOG_ERROR 154 occurs. Examples *yy/*mm/*ss, rangebox *value. 155 - delete conf.menu.on_without_ok. 156 - delete conf.form.value_without_ok. 157 * rename: conf.text.highlight -> conf.text.escape. 158 * rename: theme.menu.namesepcolor -> theme.menu.sepnamecolor. 159 * rename: theme.menu.descsepcolor -> theme.menu.sepdesccolor. 160 * fix: bsddialog_pause() elevation bar after resize. 161 * fix: bsddialog_textbox() key '0'. 162 * fix: timebox.c checksize (boxes width). 163 * fix: extend menurows after shrink and enlarge. 164 * fix: menu pad and form pad "re-expansion" after shrink and enlarge. 165 * fix: shadow top-left corner (trick wresize() before wmove()). 166 * fix: increment bsddialog_total_progview size for more general use. 167 * delete: BSDDIALOG_THEME_BSDDIALOG (partially implemented). 168 * delete: conf.button.generic1_label (for new conf.button.right1_label). 169 * delete: BSDDIALOG_GENERIC1 return value (new BSDDIALOG_RIGHT1). 170 * delete: conf.button.generic2_label (for new conf.button.right2_label). 171 * delete: BSDDIALOG_GENERIC2 return value (new BSDDIALOG_RIGHT2). 172 * delete: bsddialog_clearterminal(), replaced by bsddialog_clear(y). 173 * refactor: internal implementation. 174 - add: internal structures to represent components. 175 - merge: (when possible) dialogs autosize. 176 - merge: (when possible) dialogs checksize. 177 - merge: for each dialog "build" with "update" -> <dialog>_redraw(). 178 - merge: new_dialog() with update_dialog() -> draw_dialog(). 179 - merge: infobox.c with messagebox.c (delete infobox.c) 180 - merge: bsddialog_datebox() + bsddialog_calendar() -> datebox.c 181 - change: flat and blackwhite real themes, 3d adapted from flat. 182 - improve: replace wrefresh() -> wnoutrefresh()/doupdate(). 183 - improve: replace prefresh() -> pnoutrefresh()/doupdate(). 184 - improve: menu split code to build private items. 185 - improve: form split code to build private items. 186 - delete: -Wno-implicit-fallthrough. 187 188 1892023-06-12 Version 0.4.2 190 191 Library: 192 * fix: compile error with aarch64-gcc12 for "\Z[0-7]" check; 193 https://gitlab.com/alfix/bsddialog/-/issues/5. 194 * fix: BSDDIALOG_FIELDCURSOREND with multiple items 195 (warning aarch64-gcc12). 196 197 1982023-01-02 Version 0.4.1 199 200 Utility: 201 * fix: default space separator menus output, except if --separator " ". 202 * rename: GNUMakefile to GNUmakefile to simplify linux build. 203 Thanks to https://gitlab.com/alfix/bsddialog/-/merge_requests/2. 204 205 Library: 206 * fix: t.dialog.linelowercolor no bold-black, some terminal draws grey. 207 * fix: text wrapping (actual string length) with --colors. 208 * rename: GNUMakefile to GNUmakefile to simplify linux build. 209 Thanks to https://gitlab.com/alfix/bsddialog/-/merge_requests/2. 210 211 2122022-09-24 Version 0.4 213 214 Utility: 215 * add: --normal-screen to set normal mode. 216 * add: --alternate-screen to set alternate mode. 217 * add: --keep-tite as --alternate-screen alias. 218 * add: --and-dialog to build other dialogs. 219 * add: --and-widget as --and-dialog alias. 220 * add: --no-names (--no-tags becomes alias). 221 * add: --no-descriptions (--no-items becomes alias). 222 * add: --help-print-name (--help-tags becomes alias). 223 * add: --item-bottom-desc (--item-help becomes alias). 224 * add: --cr-wrap (was partially implemented) to keep '\n' with "\n". 225 * add: --text-unchanged to avoid default modification. 226 * add: --tab-escape to enable "\t" in text. 227 * add: --clear-screen to clear the screen. 228 * add: --clear-dialog to clear the dialog (was --clear). 229 * add: --calendar dialog to select a date. 230 * add: DIAGNOSTICS messages for bad arguments number. 231 * add: DIAGNOSTICS messages for missing and unexpected options. 232 * change: --clear becomes alias for --clear-screen. 233 * change: --print-maxsize format output. 234 * change: --menu, --radiolist, --checklist and --treeview output. 235 - no printed items with Cancel or ESC. 236 - --separator prints <sepstr> before each item except HELP. 237 - --separator and --separate-output print <sepstr> after each item. 238 - quoted item name/desc only when needed. 239 - --menu avoids to print selected item after focused HELP item. 240 * change: text default modification. 241 - without a "\n": '\t' -> space, '\n' -> '\n', trim spaces. 242 - with a "\n": '\t' -> space, '\n' -> space, "\n" -> '\n', no trim. 243 - delete '\n' after "\n" (also with --cr-wrap). 244 * change: --datebox input and output format yy/mm/dd -> dd/mm/yy. 245 * delete: --no-collapse (partially implemented). 246 * delete: --no-nl-expand (partially implemented). 247 * delete: --trim (partially implemented). 248 249 Library: 250 * add: bsddialog_msgbox() HOME, END, PPAGE and NPAGE keys. 251 * add: bsddialog_yesno() HOME, END, PPAGE and NPAGE keys. 252 * add: bsddialog_menu() SPACE key (equivalent to ENTER). 253 * add: bsddialog_calendar() to select a date. 254 * change: rename enum bsddialog_grouptype -> enum bsddialog_menutype. 255 * change: fixed-menurows becomes at most menurows (depending on text). 256 * change: fixed-rows becomes at most rows, min(rows, screenH - shadow). 257 * change: fixed-cols becomes at most cols, min(cols, screenW - shadow). 258 * delete: undocumented internal bsddialog_menuitem.depth factor (was 2). 259 260 2612022-08-29 Version 0.3 262 263 Utility: 264 * add: --textbox accepts options for the first button. 265 * add: --columns-per-row for text autosizing. 266 * add: --load-theme to read and set a custom theme at runtime. 267 * add: --save-theme to save current theme. 268 * add: --bikeshed for random settings. 269 * add: --switch-buttons to enable buttons/input widgets focus switching. 270 Available for: --form, --inputbox, --mixedform, --passwordform, 271 --passwordbox, --timebox and --datebox. 272 * change: rename --esc-cancelvalue to --esc-return-cancel. 273 * change: form field value is printed like multibyte charachter string, 274 previously widechar string. 275 * change: --timebox output with zero padding. 276 * change: --datebox output mm and dd with zero padding. 277 * fix: --hline with empty string. 278 * fix: avoid to overlay the backtitle by setting a top margin. 279 * fix: avoid to overlay down shadow with menus and forms bottomdesc 280 by setting a down margin. 281 * fix: --form read-only flag with multiple fields. 282 283 Library: 284 * add: conf.auto_topmargin and conf.auto_downmargin. 285 * add: bsddialog_textbox() accepts conf.button.* for the first button. 286 * add: bsddialog_textbox() arrows and percentage. 287 * add: conf.text.cols_per_row to set a ratio for text autosizing. 288 * add: timebox and datebox arrows and focus background for boxes. 289 * add: timebox and datebox UP key to switch focus. 290 * add: bsddialog_init_notheme() in bsddialog.h. 291 * add: bsddialog_hascolors() in bsddialog_theme.h. 292 * add: theme.form.bottomdesccolor and theme.menu.bottomdesccolor. 293 * add: conf.button.always_active to disable buttons/input-boxes switch. 294 * add: dynamic buttons margin. 295 - add: theme.button.minmargin and theme.button.maxmargin. 296 - delete: theme.button.hmargin. 297 * add: Unicode. 298 - UI handles multicolumn charachters: backtitle, title, 299 text (word wrapping, autosizing), menus (shortcuts, name, desc), 300 forms (label, field), textbox, mixedgauge (minilabel), 301 buttons (label, shortcuts), bottomtitle. 302 - API handles char* arguments like multibyte charachter string, 303 depending on the current locale. 304 - Internally wide charachters are used to get input from keyboard 305 and to adapt word wrapping and dynamic text autosizing to 306 muticolumn charachters. 307 * refactoring: (rewrite) form.c. 308 - delete: libformw dep implementing its features from scratch. 309 - delete: maxvaluelen >= valuelen constraint. 310 - delete: conf.form.enable_wchar, get always unicode (wchar) input. 311 - add: KEY_HOME, KEY_END, KEY_PPAGE, KEY_NPAGE keys in field. 312 - add: KEY_UP can move focus from buttons to fields. 313 - add: KEY_DOWN can move focus from item to buttons, if nitem is 1. 314 - add: conf.form.securembch secure multibyte charachter. 315 - add: BSDDIALOG_FIELDNOCOLOR for formitem.flags. 316 - add: BSDDIALOG_FIELDCURSOREND for formitem.flags. 317 - add: BSDDIALOG_FIELDEXTEND for formitem.flags. 318 - add: BSDDIALOG_FIELDSINGLEBYTE for formitem.flags. 319 - add: resizing and refresh after KEY_RESIZE (SIGWINCH). 320 - add: items scrolling. 321 - add: conf.form.value_wchar, value is wchar_t* instead of MB-char*. 322 - add: formheight autosizing. 323 - add: dynamic item position. 324 * fix: bsddialog_gauge() with fd < 0. 325 * fix: bsddialog_gauge() refresh new text. 326 * fix: internal segmentation fault with disabled shadow. 327 * fix: center position without shadow. 328 * fix: bsddialog_infobox() with zero text length. 329 * fix: text wrapping with more than 1024 words. 330 * fix: rename theme.shadow.h to theme.shadow.y. 331 * fix: rename theme.shadow.w to theme.shadow.x. 332 * fix: menurows autosize with fixed rows improving text_size(). 333 * fix: messagebox.c scrolling and checksize without text. 334 335 3362022-03-02 Version 0.2 337 338 Utility: 339 * add: (this) CHANGELOG. 340 * add: "menus" print item with focus (except with OK and ERROR). 341 * add: pause.sh example. 342 * add: timebox.sh example. 343 * change: --theme name "default" -> "flat". 344 * delete: treeview.sh example. 345 * fix: --separate-output does not quote (except with --quoted). 346 * fix: --datebox and --date-format month in output. 347 * improve: examples handle exit status. 348 349 Library: 350 * add: conf.form.enable_wchar for wide characters in bsddialog_form(). 351 * add: theme.menu.f_selectorcolor. 352 * add: formw.c example. 353 * change: move conf.f1_file and conf.f1_message in conf.key. 354 * change: theme.button.[left|right]ch -> theme.button.[left|right]delim. 355 * change: theme.button.space -> theme.button.hmargin. 356 * change: theme.menu.arrowcolor -> theme.dialog.arrowcolor. 357 * change: internal bsddialog_menuitem.depth factor 4 -> 2. 358 * fix: disable HOME, PPAGE, END and NPAGE keys in bsddialog_form(). 359 * fix: visible cursor for timebox.c and form.c in VM VirtualBox. 360 * fix: mixedlist, center position of separator with big pad. 361 * fix: timebox and datebox set values only with BSDDIALOG_OK. 362 * fix: menurows autosize with fullscreen. 363 * fix: bar color with 0%. 364 * fix: bar label position. 365 * improve: timebox and datebox navigation (keys, buttons and shortcuts). 366 * improve: "menus" colors for accessibility. 367 368 3692022-01-27 Version 0.1 370 371 * Options: --ascii-lines, --backtitle <backtitle>, --begin-x <x>, 372 --begin-y <y>, --cancel-label <label>, --clear, --colors, --cr-wrap, 373 --date-format <format>, --defaultno, --default-button <label>, 374 --default-no, --default-item <name>, --disable-esc, 375 --esc-cancelvalue, --exit-label <label>, --extra-button, 376 --extra-label <label>, --generic-button1 <label>, 377 --generic-button2 <label>, --help, --help-button, 378 --help-label <label>, --help-status, --help-tags, 379 --hfile <filename>, --hline <string>, --hmsg <string>, --ignore, 380 --insecure, --item-depth, --item-help, --items-prefix, 381 --max-input <size>, --no-cancel, --nocancel, --no-collapse, 382 --no-items, --no-label <label>, --no-lines, --no-nl-expand, 383 --no-ok, --nook, --no-shadow, --no-tags, --ok-label <label>, 384 --output-fd <fd>, --output-separator <sep>, --print-maxsize, 385 --print-size, --print-version, --quoted, --separate-output, 386 --separator <sep>, --shadow, --single-quoted, --sleep <secs>, 387 --stderr, --stdout, --tab-len <spaces>, 388 --theme <blackwhite|bsddialog|default|dialog>, 389 --time-format <format>, --title <title>, --trim, --version, 390 --yes-label <label>. 391 * Dialogs: --checklist, --datebox, --form, --gauge, --infobox, 392 --inputbox, --menu, --mixedform, --mixedgauge, --msgbox, 393 --passwordbox, --passwordform, --pause, --radiolist, --rangebox, 394 --textbox, --timebox, --treeview, --yesno. 395 * Manuals: bsddialog.1, bsddialog.3. 396