'Mosh go to end of line

I am using iTerm2 on Mac. Usually Fn+Right navigates to the end of a line in the terminal, which is super useful when repeating an old command but with different arguments.

In Mosh however, Fn+Right inserts an F and moves the current command input to a new line.

How can I fix this behaviour?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source