Minibuffer use (term resize) in Mikrotik shell breaks printing newlines
The Mikrotik shell displays its prompt at the bottom of the terminal. In doing so it issues some character sequence like this to move the cursor:
raw:
[9999B[1;9999r[9999B
asciified for human eyes:
^[[9999B^[[1;9999r^[[9999B
If I open a minibuffer after this sequence is printed, vterm runs the vterm--window-adjust-process-window-size function, after which no newlines are printed to the terminal -- all commands carriage-return and print over the same line at the bottom of the terminal.
I'm able to replicate the issue the Mikrotik shell causes with the following shell script:
while true ; do
cat << EOF
[9999B[1;9999r[9999B
EOF
sleep 10
done
The issue does not occur if I disable running the resize function.
Does anyone have any thoughts on how I can fix this issue?
Also when resizing the vterm buffer, the output will be messed up. I haven't looked into it in detail, but atm vterm in combination with mikrotik is not usable.