This is an example of how to write a frontend for the emulator.
It uses tcell to render the screen to your terminal and handle keyboard input. It requires a terminal with 256 colour support (haven't tested it on others).
You will probably want to adjust your terminals font settings and vertical character spacing as the screen will probably scroll off the end of your terminal window.
How to run
go run . <path-to-rom-file>
Esc will quit the application
Overview of files
Sets up the IO related stuff to handle screen drawing and keyboard updates.
In this particular case we are rendering to the terminal.
Sets up a no-op battery save store. You can change this to write to a filesystem or other storage medium, but for this example it just does nothing.
Glues everything together and runs the application