On Sat, May 18, 2013 at 11:03:52PM +0200, Vaclav Ovsik wrote: > Package: dialog > Version: 1.2-20121230-1 > Severity: normal > > Dear Maintainer, > after ncurses packages upgraded to version 5.9+20130504-1 my shell > script with dialogs stopped working. After some investigation I found, > that dialog sends terminal control sequence for maybe clearing terminal > to stdout. Consider: > > zito@bobek:~$ dialog --stdout --menu 'my menu' 15 60 0 first "1st menu item" > second "2nd menu item" >/tmp/x > zito@bobek:~$ xxd /tmp/x > 0000000: 1b5b 324a 1b5b 3f34 376c 1b38 1b5b 481b .[2J.[?47l.8.[H. > 0000010: 5b32 4a66 6972 7374 [2Jfirst > > Normal behaviour is back when ncurses packages downgraded to 5.9-10 > version. Despite this fact I reported this problem against dialog, > I suspect dialog maybe uses something from ncurses incorrectly and this > problem occurred now with some change in ncurses.
yes - I changed something in ncurses, starting here:
20120825
+ change output buffering scheme, using buffer maintained by ncurses
rather than stdio, to avoid problems with SIGTSTP handling (report
by Brian Bloniarz).
(the fix for this problem will be to add an fflush in dialog to work as
intended)
--
Thomas E. Dickey <[email protected]>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature

