There are situations where one may have many choices or radio buttons. In this case, the options overflow from the window and can even run off the screen.
options=({1..99}) for option in "${options[@]}" do args+=("$option" "" OFF) done whiptail --checklist "title" 20 78 ${#options[@]} "${args[@]}"
The ideal solution would be to automatically enable scrolling, or manually enable it with --scrolltext.
--scrolltext
dialog does this correctly:
dialog
options=({1..99}) for option in "${options[@]}" do args+=("$option" "" OFF) done dialog --checklist "title" 20 78 ${#options[@]} "${args[@]}"
Ah, so I didn't realize that list-height must not exceed window height. Everything is good now. This issue can be closed.
list-height
Ok, closing.
Metadata Update from @mlichvar: - Issue close_status updated to: Invalid - Issue status updated to: Closed (was: Open)