If you want to see some code which as far as I'm concerned is indistinguishable ...

@syn@basilisk.gallery

If you want to see some code which as far as I'm concerned is indistinguishable from magic, github.com/zenbu-labs/terminal

Best results: use Ghostty on macOS / Linux and Noctty on Windows. Should be top-tier with Alacritty and Kitty too. Works with many terminals though.

Also check out the --ssh flag.