pub fn main_loop<GS>( bterm: BTerm, gamestate: GS, ) -> Result<(), Box<dyn Error + Send + Sync>>where GS: GameState,
Runs the BTerm application, calling into the provided gamestate handler every tick.