2025/04/03
That some terminal emulators support a control sequence for sending notifications:
printf "\e]777;notify;%s;%s\e\\" "title" "body"
This seems to work in WezTerm (https://wezterm.org/config/lua/config/notification_handling.html) and Ghostty, but not iterm2 or terminal.app.