I was asked to raise this on SO by the Devops community: https://devops.stackexchange.com/questions/13626/end-and-home-buttons-dont-work-inside-docker-container
When I'm in my windows terminal I can use the Home and End buttons on my keyboard to move the cursor to the beginning or end of what I'm typing. I use this often. However, if I enter a docker container this doesn't seem to work. To reproduce, I run this:
docker run -it ubuntu:latest /bin/bash
Then I type abc followed by the Home and End button on my keyboard. The Home button does nothing, and the End button prints a tilde (~) to the screen instead of moving my cursor.
How do I get these buttons to work as expected?