Skip to content

Terminal: Handle raw mode cleanup on panic (ensure terminal restored on abnormal exit) #94

Description

@exlier

Problem

  • When the shell panics, is killed, or otherwise exits while the terminal is in raw/cbreak mode, the terminal is often left unusable (no echo, broken input). Current cleanup runs on normal shutdown but not reliably on panic/unwind.

Impact

  • After a crash, users must run reset or reopen a terminal session. This is high friction for developers and users, and impedes debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions