ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Why does some key combinations not work over ssh?

    IT Discussion
    midnight commander ssh
    3
    32
    1.7k
    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.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Does MC list a set of key combos that they have created? I'm not sure how that can work technically. I Googled it and couldn't find any keys documented as being set by it.

      1 1 Reply Last reply Reply Quote 0
      • 1
        1337 @scottalanmiller
        last edited by

        @scottalanmiller said in Why does some key combinations not work over ssh?:

        Does MC list a set of key combos that they have created? I'm not sure how that can work technically. I Googled it and couldn't find any keys documented as being set by it.

        mc as in midnight commander.
        https://midnight-commander.org/wiki/doc/filePanels/hotkeys

        alt text

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          OH!!!! Not MeshCentral. We talk about MC so often, it never occurred to me that it would be something else.

          1 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            Well that just changes everything and makes SO much more sense now.

            1 Reply Last reply Reply Quote 0
            • 1
              1337 @scottalanmiller
              last edited by

              @scottalanmiller said in Why does some key combinations not work over ssh?:

              OH!!!! Not MeshCentral. We talk about MC so often, it never occurred to me that it would be something else.

              That's why I used mc instead of MC 🙂

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @1337
                last edited by

                @Pete-S said in Why does some key combinations not work over ssh?:

                @scottalanmiller said in Why does some key combinations not work over ssh?:

                OH!!!! Not MeshCentral. We talk about MC so often, it never occurred to me that it would be something else.

                That's why I used mc instead of MC 🙂

                JAJA, okay. You got me there.

                "mc" installed so that I can test...

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  Okay, so the commands work locally for me now 😉

                  1 1 Reply Last reply Reply Quote 0
                  • 1
                    1337 @scottalanmiller
                    last edited by 1337

                    @scottalanmiller said in Why does some key combinations not work over ssh?:

                    Okay, so the commands work locally for me now 😉

                    OK.

                    I have two identical debian VMs (clones), with openssh, no xwindows.

                    When I start mc locally and edit a file (press F4 and pick mcedit) I can use the keyboard and move the cursor word by word by using (ctrl+left/right arrow) inside the editor.

                    This works fine on both.

                    If I however open an ssh connection from one to the other server and then start mc and edit the same file, the same keyboard combinations (ctrl+left/right arrow) doesn't work.

                    1 Reply Last reply Reply Quote 0
                    • 1
                      1337
                      last edited by 1337

                      OK, test 2.

                      Installed two identical Fedora 30 Servers in VMs (clones).

                      Using mc locally and edit a file => ctrl+left/right arrow works.

                      SSH to the other server and start mc and edit same file => ctrl+left/right arrow doesn't work.

                      So the results are the same as on the debian servers. Are some keyboard "codes" lost over ssh, or is there something else going on?

                      1 Reply Last reply Reply Quote 0
                      • 1
                        1337
                        last edited by

                        OK, test 3.

                        This is even more straight forward.

                        Start mc locally and edit a file => ctrl+left/right arrow works.

                        SSH to localhost, start mc and edit same file => ctrl+left/right arrow doesn't work.

                        1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller
                          last edited by

                          So the issue is that SSH uses the ASCII definitions for what can be passed, and things like Control-Shift aren't defined in the ASCII C0 control set.

                          https://en.wikipedia.org/w/index.php?title=C0_and_C1_control_codes&oldid=869654887#C0_controls

                          So they aren't passed because they aren't part of the character set of the protocol. So yes, it's SSH not passing it because it doesn't exist to SSH 😞

                          1 1 Reply Last reply Reply Quote 1
                          • 1
                            1337 @scottalanmiller
                            last edited by

                            @scottalanmiller said in Why does some key combinations not work over ssh?:

                            So the issue is that SSH uses the ASCII definitions for what can be passed, and things like Control-Shift aren't defined in the ASCII C0 control set.

                            https://en.wikipedia.org/w/index.php?title=C0_and_C1_control_codes&oldid=869654887#C0_controls

                            So they aren't passed because they aren't part of the character set of the protocol. So yes, it's SSH not passing it because it doesn't exist to SSH 😞

                            That's too bad.

                            Do you have any link where it says that ssh uses these definitions? Maybe there is a way around it.

                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @1337
                              last edited by

                              @Pete-S said in Why does some key combinations not work over ssh?:

                              @scottalanmiller said in Why does some key combinations not work over ssh?:

                              So the issue is that SSH uses the ASCII definitions for what can be passed, and things like Control-Shift aren't defined in the ASCII C0 control set.

                              https://en.wikipedia.org/w/index.php?title=C0_and_C1_control_codes&oldid=869654887#C0_controls

                              So they aren't passed because they aren't part of the character set of the protocol. So yes, it's SSH not passing it because it doesn't exist to SSH 😞

                              That's too bad.

                              Do you have any link where it says that ssh uses these definitions? Maybe there is a way around it.

                              Can't find one, not with OpenSSH. Tectia supports it, but is crap in general. If you search on it, everyone talks about the ASCII limits of SSH. You'll find SFTP / SCP have the ASCII / Binary option for connections because of the underlying ASCII protocol in use.

                              1 1 Reply Last reply Reply Quote 0
                              • 1
                                1337 @scottalanmiller
                                last edited by

                                @scottalanmiller said in Why does some key combinations not work over ssh?:

                                @Pete-S said in Why does some key combinations not work over ssh?:

                                @scottalanmiller said in Why does some key combinations not work over ssh?:

                                So the issue is that SSH uses the ASCII definitions for what can be passed, and things like Control-Shift aren't defined in the ASCII C0 control set.

                                https://en.wikipedia.org/w/index.php?title=C0_and_C1_control_codes&oldid=869654887#C0_controls

                                So they aren't passed because they aren't part of the character set of the protocol. So yes, it's SSH not passing it because it doesn't exist to SSH 😞

                                That's too bad.

                                Do you have any link where it says that ssh uses these definitions? Maybe there is a way around it.

                                Can't find one, not with OpenSSH. Tectia supports it, but is crap in general. If you search on it, everyone talks about the ASCII limits of SSH. You'll find SFTP / SCP have the ASCII / Binary option for connections because of the underlying ASCII protocol in use.

                                Thanks, I'll dig around and see if I can find something. Otherwise I'll just have accept that it is what it is 🙂

                                1 Reply Last reply Reply Quote 0
                                • 1
                                • 2
                                • 2 / 2
                                • First post
                                  Last post