Package: whiptail
Version: 0.52.10-8
Severity: wishlist
To get this to work:
whiptail --msgbox "Text fitting takes trial & error." 7 38
...the user has to measure the text length, (33), add 5, (33+5=38), and
measure the lines, & add 6.
It'd be simpler if 'whiptail' calculated the 'height' and 'width'
automatically; for example:
whiptail --msgbox "Text fitting takes trial & error."
Shell script kludge for impatient users:
# one line of text only.
whipmsg() { whiptail --msgbox "$1" 7 $(( ${#1} + 5 )) ; }
whipmsg "hello world"
...but a better routine would allow for terminal width, and multi-line text..
The proposed syntax should also let users manually supply the 'height'
and 'width' options.
Similar defaults would be useful for most 'whiptail' options requiring
'height' and 'width'.
HTH...
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-3-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Versions of packages whiptail depends on:
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libnewt0.52 0.52.10-8 Not Erik's Windowing Toolkit - tex
ii libpopt0 1.15-1 lib for parsing cmdline parameters
ii libslang2 2.2.2-4 The S-Lang programming library - r
whiptail recommends no packages.
whiptail suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]