Ctrl+Up/Down function

80 views
Skip to first unread message

hepp...@gmail.com

unread,
Jul 17, 2017, 5:56:38 PM7/17/17
to chromium-hterm
I have been using Secure Shell with byobu and enjoying it quite a bit. Either I have changed some settings or during a update of Secure shell, recently the function to switch from on split to another Shift+up/down stopped working.  Is there a way to stop it from scrolling the window and just send the Shift+Up/down to the terminal?

Mike Frysinger

unread,
Jul 17, 2017, 6:33:01 PM7/17/17
to hepp...@gmail.com, chromium-hterm
yes, i recently changed the default shortcut for shift+up/down arrow keys to scroll the hterm buffer by single lines (akin to the shift+pgup/pgdown):

if you don't like this, you can add your own keybindings like:
{
  "Shift-Up": "'\u001bOA'",
  "Shift-Down": "'\u001bOB'"
}

please consult the FAQ for more details:
-mike

On Mon, Jul 17, 2017 at 5:56 PM, <hepp...@gmail.com> wrote:
I have been using Secure Shell with byobu and enjoying it quite a bit. Either I have changed some settings or during a update of Secure shell, recently the function to switch from on split to another Shift+up/down stopped working.  Is there a way to stop it from scrolling the window and just send the Shift+Up/down to the terminal?

--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/fa8d1b34-e15b-4ae8-a069-cba8e6399a2e%40chromium.org.

Chris Heppner

unread,
Jul 18, 2017, 1:42:58 AM7/18/17
to Mike Frysinger, chromium-hterm
Thanks for the quick reply.  That is what I was thinking happened.  The main problem I have is getting the Shift+ up/down to be passed to the terminal.  The code you suggested does indeed replace Shift+Up with Up however trying to pass the shift key with it doesn't seem to work.  I looked in the source code where you changed the 2 lines.  I also read through the FAQ but still haven't been successful

Mike Frysinger

unread,
Jul 18, 2017, 2:20:24 AM7/18/17
to Chris Heppner, chromium-hterm
you can try [A and [B instead of OA and OB instead
-mike

Chris Heppner

unread,
Jul 18, 2017, 10:28:27 AM7/18/17
to Mike Frysinger, chromium-hterm
Should have said that I tried that.  It functioons the [A functions the same as OA.

Did some more digging and figured it out.
Using showkey I figured out the string that I needed to send.

{
  "Shift-Down": "'\u001b[1;2B'",
  "Shift-Up": "'\u001b[1;2A'"
}

Thanks for the help Mile
Reply all
Reply to author
Forward
0 new messages