This has to be one of the stranger bugs I've run into lately. Spent an hour chasing it through several unrelated codebases because it didn't even occur to me that the issue might be in my terminal emulator.