Ghostty on both macOS and Linux now support marking a terminal as read-only. In this mode, you can still search, scroll, and select text, but no input is sent to the running program. If you have something scary you really don't want to mess up, this is perfect!
You can toggle this with the command palette, a keybinding (bind "toggle_readonly"), the context menu, or the main menu.