added thin border, made cursor invisible
1 files changed, 7 insertions(+), 3 deletions(-)

M src/main.rs
M src/main.rs +7 -3
@@ 17,6 17,7 @@ fn main() {
         noecho();
         nodelay(stdscr, true);
         keypad(stdscr, true);
+        curs_set(CURSOR_VISIBILITY::CURSOR_INVISIBLE);
     };
     let end_ncurses = || {
         echo();

          
@@ 45,7 46,7 @@ fn main() {
     options.optopt("s", ARG_FPS, "the number of updates per second", "FPS");
     options.optopt("d", ARG_DEAD, "the character to display for dead cells", "CHAR");
     options.optopt("a", ARG_ALIVE, "the character to display for living cells", "CHAR");
-    options.optopt("b", ARG_BORDER, "Draw a border around the grid. Valid TYPEs are: blank, single (default), double, strong, thick, solid", "TYPE");
+    options.optopt("b", ARG_BORDER, "Draw a border around the grid. Valid TYPEs are: blank, single (default), double, strong, thin, thick, solid", "TYPE");
 
     let print_help = |short: bool| {
         const APP_NAME: &'static str = "tlife";

          
@@ 141,6 142,7 @@ fn main() {
             "single" => Border::Single,
             "double" => Border::Double,
             "strong" => Border::Strong,
+            "thin" => Border::Thin,
             "thick" => Border::Thick,
             "solid" => Border::Solid,
             arg @ _ => {

          
@@ 287,6 289,7 @@ enum Border {
     Single,
     Double,
     Strong,
+    Thin,
     Thick,
     Solid
 }

          
@@ 326,8 329,9 @@ impl Border {
                 BorderPart::BottomLeft => 0x2517,
                 BorderPart::BottomRight => 0x251B
             },
-            &Border::Thick => ACS_CKBOARD(),
-            &Border::Solid => ACS_BOARD()
+            &Border::Thin => ACS_CKBOARD(),
+            &Border::Thick => ACS_BOARD(),
+            &Border::Solid => ACS_BLOCK()
         }
     }