2

How to make whiptail full terminal screen? "as big as the terminal", like fluid CSS, something like 100%

1

Do you mean something like this?

whiptail --msgbox hello $(stty -a | tr \; \\012 |
    egrep 'rows|columns' | cut '-d ' -f3)
  • exactly like that, could you please modify it slightly to make it work with my own script here unix.stackexchange.com/questions/182021/… ? It's working but when I try to put it in my existing script, I get errors – Lynob Jan 30 '15 at 15:59
  • If I substitute that $(stty ...) pipeline into the whiptail command you have over at that other question it works fine for me. – Celada Jan 31 '15 at 3:59
4

stty size gives you all you need. So for example:

whiptail --msgbox test $(stty size)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.