Both in legacy console and compty modes I'm seeing ?[?25h?[4 q displayed at the end of my prompt which is obviously an ANSI sequence. I believe I'm running under Windows terminal in Windows 11, but I don't know how to tell programmatically. If I choose let Windows decide or run under Windows terminal I get the same behavior. I'm still getting conhost instead of openconsole so maybe I'm not really running under terminal.