I think it's ENABLE_VIRTUAL_TERMINAL_PROCESSING that we need. We could probably check if it's enabled in current mode instead. AFAIR it's enabled by default on recent Windows. It would automatically start working on Wine when we implement that in conhost then (see bug 49780).