Why we can't use Checklists in Dialog
-
Hello,
I have a small question.
If I usedialog --checklist
and call the script from runcommand it will show lists as expected. But I can't check any of the list boxes via controller.So my question is:
- Is this the fault of my controller?
- Is this a general happit in RetroPie dialog menus?
Maybe @BuZz can explain?
-
@cyperghost I think they have to be checked /unchecked using
spacebar
on a keyboard. -
@jonnykesh Of course they can be checked by keyboard... I asked via controller :)
May you can test please?
#!/bin/bash DISTROS=$(dialog --title "Test Checklist Dialog" --checklist \ "Choose preferred Linux distros" 15 60 4 \ "debian" "Venerable Debian" ON \ "ubuntu" "Popular Ubuntu" OFF \ "centos" "Stable CentOS" ON \ "mint" "Rising Star Mint" OFF 3>&1 1>&2 2>&3) exitstatus=$? if [ $exitstatus = 0 ]; then echo "Your favorite distros are:" $DISTROS else echo "You chose Cancel." fi
-
@cyperghost Yeah, it works on my Laptop (Debian) and on the Pi. Both with keyboard only. Unable to navigate or select / deselect using a controller (wired Xbox360).
-
@jonnykesh Such a pity! The checklists got the advantage to loop internal.
So if you choose option 1 and 3... option 1 and 3 will be called by the scripts.I wait ... maybe some code magics can help me out. I want to avoid radio-boxes for the script I'm planing :)
The code above was just an example!
-
@cyperghost I use
--checklist
s on rpie-art with no problems.If you're launching your script via RetroPie menu, try the B button.
-
@meleu Tried it --- no luck. It won't work with my controller :(
-
@cyperghost out of curiosity, could you install rpie-art and see if the checklists will work?
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.