mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
When stdout is a TTY, write the cursor-show escape sequence (\x1b[?25h) in bun_restore_stdio() before restoring termios settings. Many CLI applications (like Ink) hide the cursor during operation and rely on cleanup handlers to restore it. On macOS, if the process exits before the cursor-show sequence is flushed, the cursor remains invisible in the terminal. This fix ensures the cursor is always visible after Bun exits, regardless of how the process terminates. Fixes #26642 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.7 KiB
1.7 KiB