Spatial memory is really underutilised in computing. When libghostty[0] releases maybe you could use that so you don't have to build everything from scratch. [0]: https://mitchellh.com/writing/libghostty-is-coming
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.