I'm using Windows Terminal (TERM=xterm-256color) in a bash shell under Ubuntu:
uname -a
Linux xxxxxxx 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
I'm using vi command line editing mode (set -o vi, in .bashrc on both systems) and everything works as expected.
When I ssh to a bsd machine:
uname -a
FreeBSD yyyyyyy 11.1-RELEASE FreeBSD 11.1-RELEASE #0: Fri Apr 20 14:32:29 EDT 2018 root@zzzzzzz:/usr/obj/usr/src/sys/BBKERN amd64
The insert mode no longer works as expected. In insert mode instead of pushing text right it just overwrites the text. However, when the command is processed (i.e. I hit enter) it's clear the text has been inserted and not overwritten.
From looking around I'm guessing this is something I would address in .inputrc (?) Unfortunately, I don't know how to get the key value that Win Terminal is sending or that BSD is wanting.
I'll note that inserts work as expected in the vi editor.
Does anyone know how I can fix this or how I can get the expected keycodes?