Portál AbcLinuxu, 26. dubna 2024 19:39


Dotaz: How to display infobox in whiptail?

21.10.2012 19:34 joe
How to display infobox in whiptail?
Přečteno: 267×
Odpovědět | Admin
Hi ;)

Why does not this code in Bash?
whiptail --infobox "My Text" 0 0
Thank you very much...
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

21.10.2012 19:53 l4m4
Rozbalit Rozbalit vše Re: How to display infobox in whiptail?
Odpovědět | | Sbalit | Link | Blokovat | Admin
Because it's buggy and, contrary to the man page, clears the screen immediately. Auto sizing with dimensions "0 0" doesn't really work either. Use dialog(1).
21.10.2012 20:20 joe
Rozbalit Rozbalit vše Re: How to display infobox in whiptail?
Hi, thank.. code does not work even when the: whiptail --infobox "My Text" 100 100 :-(
21.10.2012 20:51 l4m4
Rozbalit Rozbalit vše Re: How to display infobox in whiptail?
Did you read also the first sentence of my answer?
21.10.2012 21:22 joe
Rozbalit Rozbalit vše Re: How to display infobox in whiptail?
Yes, the bug was announced 2009 - 2010, that the author did not fix? It's disgusting :-D

How can I find the installed version whiptail?
21.10.2012 22:20 l4m4
Rozbalit Rozbalit vše Re: How to display infobox in whiptail?
Yes, the bug was announced 2009 - 2010, that the author did not fix?
Seems they didn't... 0.52.14 is the last version, about 1 yr old, and it clears the screen.
How can I find the installed version whiptail?
Another thing that dialog does properly: --verison works... So, ask your package manager, whatever it is:
rpm -qa '*newt*'
dpkg -l '*newt*'
...
whiptail may be in a separate package but since it comes with newt the version will be the same.
21.10.2012 23:35 joe
Rozbalit Rozbalit vše Re: How to display infobox in whiptail?
OK. Thank you very much for your time!

Know other display dialog boxes from shell scripts? No Dialog or Whiptail

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.