fix restoring terminal state after hijack

[#85278722]