Update: I gave it a try and it does exactly what I hoped. However one (minor) annoyance I immediately realized was that with `hex` enabled I will get this warning whenever I close the terminal window:
> The terminal still has a running process. If you close the terminal the process will be killed.
Hopefully there is a workaround for this (I'm using then Ghostty emulator).
> The terminal still has a running process. If you close the terminal the process will be killed.
Hopefully there is a workaround for this (I'm using then Ghostty emulator).