libghostty already powers quite a few alternate terminals:

https://github.com/Uzaaft/awesome-libghostty

This project uses alacritty-terminal, so it's also very much 'not from scratch', just using a Rust library to that effect.