I'm using a Raspberry Pi 3 with LibreELEC 7.0.2.
When I connect via SSH (from PuTTY on Windows), the arrow/home/end keys work correctly within the shell as well as within vi. However, once I enter parted, the arrow/home/end keys start displaying characters such as:
(parted) ^[[A^[[B^[[D^[[C^[[1~^[[4~
Using the exact same SSH settings to connect to Arch Linux on another Raspberry Pi and use parted there with arrow/home/end keys just fine.
From some related searches:
Seeing escape characters when pressing the arrow keys in python shell - Stack Overflow
It sounds like the problem may be related to readline. Is LibreELEC's parted compiled with readline disabled?
Parted User’s Manual
Thanks,
David