{"version":"2.1.330","anchor":"terminal-handling-moved-into-a-terminal-object","canonical_anchor":"terminal-handling-moved-into-a-terminal-object","heading":"Terminal shutdown handled in one place, and late terminal replies ignored","tier":"internal","area":"Terminal UI","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/terminal-handling-moved-into-a-terminal-object","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Terminal shutdown handled in one place, and late terminal replies ignored\n\nOn exit, Claude Code now stops reading and clears leftover keyboard input through one terminal component, and it ignores late terminal replies\n\n**What**\n\nWhen Claude Code shuts down, it has to stop listening for keyboard input, discard any input still waiting, and return the terminal to normal. Those steps now go through a single terminal component. The code for the mouse's pixel-position mode is also gone from that part of Claude Code.\n\nClaude Code also asks the terminal which features it supports. It can now tell when the terminal's answer arrives late, and it ignores a late answer.\n\n**Why**\n\nThe change targets problems after Claude Code exits, such as the terminal hanging or stray input left behind.\n\n- Area: Terminal UI\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}