RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Why we can't use Checklists in Dialog

    Scheduled Pinned Locked Moved Help and Support
    runcommanddialog
    8 Posts 3 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cyperghostC
      cyperghost
      last edited by

      Hello,

      I have a small question.
      If I use dialog --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:

      1. Is this the fault of my controller?
      2. Is this a general happit in RetroPie dialog menus?

      Maybe @BuZz can explain?

      jonnykeshJ meleuM 2 Replies Last reply Reply Quote 0
      • jonnykeshJ
        jonnykesh @cyperghost
        last edited by

        @cyperghost I think they have to be checked /unchecked using spacebaron a keyboard.

        cyperghostC 1 Reply Last reply Reply Quote 0
        • cyperghostC
          cyperghost @jonnykesh
          last edited by

          @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
          
          jonnykeshJ 1 Reply Last reply Reply Quote 0
          • jonnykeshJ
            jonnykesh @cyperghost
            last edited by

            @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).

            cyperghostC 1 Reply Last reply Reply Quote 1
            • cyperghostC
              cyperghost @jonnykesh
              last edited by

              @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!

              1 Reply Last reply Reply Quote 0
              • meleuM
                meleu @cyperghost
                last edited by

                @cyperghost I use --checklists on rpie-art with no problems.

                If you're launching your script via RetroPie menu, try the B button.

                • Useful topics
                • joystick-selection tool
                • rpie-art tool
                • achievements I made
                cyperghostC 1 Reply Last reply Reply Quote 0
                • cyperghostC
                  cyperghost @meleu
                  last edited by

                  @meleu Tried it --- no luck. It won't work with my controller :(

                  meleuM 1 Reply Last reply Reply Quote 0
                  • meleuM
                    meleu @cyperghost
                    last edited by

                    @cyperghost out of curiosity, could you install rpie-art and see if the checklists will work?

                    • Useful topics
                    • joystick-selection tool
                    • rpie-art tool
                    • achievements I made
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    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.