Home and End Key Keyboard Mappings do not work for local terminal connection to MAC

Backlog

Home and End Key Keyboard Mappings do not work for local terminal connection to MAC

avatar

I have a 2021 MacBook Pro 32G with Sonoma 14.5 with a Macally external MAC keyboard

I am using RDM 2024.1.8.6

I recently upgraded to Sonoma and it broke Karbiner Elements and my home/end key mappings no longer work.

Meaning I am unable to press the home key to go to the beginning of the line or the end key to go to the end of the line.

The only way I was able to home and end and shift/home shift/end it to work and correspond to CTRL-A (home) or CTRL-E (end) is to create

/Users/bpatridge/Library/KeyBindings/DefaultKeyBinding.dict with
{
 "\UF729" = moveToBeginningOfLine:;          // home
 "\UF72B" = moveToEndOfLine:;             // end
 "^a" = moveToBeginningOfLine:;          // home
 "^e" = moveToBeginningOfLine:;          // end
 "$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home
 "$\UF72B" = moveToEndOfParagraphAndModifySelection:;    // shift-end
 "^\UF729" = moveToBeginningOfDocument:;           // ctrl-home
 "^\UF72B" = moveToEndOfDocument:;              // ctrl-end
 "^$\UF729" = moveToBeginningOfDocumentAndModifySelection:; // ctrl-shift-home
 "^$\UF72B" = moveToEndOfDocumentAndModifySelection:;    // ctrl-shift-end
 "^\UF702" = moveWordLeft:;                 // ctrl-left
 "^$\UF702" = moveWordLeftAndModifySelection:;        // ctrl-shift-left
 "^\UF703" = moveWordRight:;                 // ctrl-right
 "^$\UF703" = moveWordRightAndModifySelection:;       // ctrl-shift-right
 "^\U7F" = deleteWordBackward:;               // ctrl-backspace
 "^\UF728" = deleteWordForward:;               // ctrl-delete
 "^/" = "noop:";                       // ctrl-slash stops beep
}

That works in my apps including iTerm2 and terminal natively /etc.

However when I connect to the local mac by clicking on tools-->Terminal, or create an SSH Terminal to my local mac, the HOME and END key do not work.

If when in the RDM ssh (iterm2) session I press CTRL+a it does move the cursor to home

If when in the RDM ssh (iterm2) session I press CTRL+e it does move the cursor to end

If I open iterm2 natively home and end key do work as expected.

It works natively in terminal when I change the 'bash' keybindings to map the 'home' & end key to

\033[H
\033[F

If I click on an RDM SSH session to a Linux system using the same settings of my local mac terminal, Home and End DO work.



RDM Settings include:

  1. The default Terminal set to iTerm2
  2. SSH Shell is BASH
  3. Home /End key mode: default (I have also tried standard)



It seems like when I ssh to 'localhost' which connects to my local MacTerminal it is not using iTerm2 or Terminal??

If you have any ideas let me know.

Thanks!

All Comments (4)

avatar

Hi,

I've successfully reproduced your issue and opened a ticket.
We'll report back here when we have a solution.

Best regards,

Jesse Galarneau

avatar

This is still occurring even with RDM 2055.2.12.6
Have you found any workarounds?

avatar

Hi,

We apologize for the delay. We have not yet had the opportunity to address this issue.
The priority of this ticket has been readjusted to ensure it is resolved as quickly as possible.

Best regards,

Jesse Galarneau

avatar

Although it may be worth adding an option in the UI I was able to FINALLY find a workaround.

I added the following to my ~/.inputrc

# Home Key
"\e[1~": beginning-of-line
# End Key
"\e[4~": end-of-line


Exited and restarted a terminal session and now home/end work