|
From: | Thomas Dickey |
Subject: | RE: Display backslash-n in dialog? |
Date: | Wed, 27 Jul 2011 16:48:44 -0400 (EDT) |
On Wed, 27 Jul 2011, Moray Henderson wrote:
Thomas Dickey wrote:From the man dialog Version: 1.1-20100428 from Fedora 14. man dialog section on color --colors Interpret embedded "\Z" sequences in the dialog text by the fol- lowing character, which tells dialog to set colors or video attributes: 0 through 7 are the ANSI used in curses: black, red, green, yellow, blue, magenta, cyan and white respectively. Bold is set by 'b', reset by 'B'. Reverse is set by 'r', reset by 'R'. Underline is set by 'u', reset by 'U'. The settings are cumulative, e.g., "\Zb\Z1" makes the following text bold (per- haps bright) red. Restore normal settings with "\Zn". Without the --colors don't know how \Z would be handled, or what happens with what appears after the \Zyes (without --colors, \Z has no special meaning).There may be a bug then. I have tested this up to dialog Version 1.1-20100428 - Fedora 15 LiveCD booted to runlevel 3 with vim-common installed to provide xxd(1). I captured hex dumps from the output of 2 dialog commands:
perhaps - I'm reminded of a relatively recent bug-fix - though what I see in the changelog is for the case when --colors _is_ used.
dialog --msgbox "Hello\A world" 5 25 | xxd > 1 dialog --msgbox "Hello\Z world" 5 25 | xxd > 2
I'll add this to my to-do list, to see if I can reproduce it. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |