Draw a Train with Curses

In the last lesson, Draw a Train, we created a "main.rs" file that called a public function in a separate "module" file named "d51.rs". That function then called another function within that same file to get the ASCII-art data for a D51-model train engine, and then used "println! to print that train to the screen.

That method is pretty limited, so we're now going to convert that program so that it uses the third-party curses library crate to handle the "graphics" parts of drawing the train onto a text-mode screen.

Currently our "main.rs" file is pretty simple:

mod d51;

use d51::*;    

fn main() { 
  draw_d51(row, col);
} // end of main()