# HG changeset patch # User dermetfan # Date 1435267530 -7200 # Thu Jun 25 23:25:30 2015 +0200 # Node ID 13bcf4e99788545559aeee6d18834de774278d34 # Parent 96e9255065c0c7dffe3e08eb0303d38e69ce421a added thin border, made cursor invisible diff --git a/src/main.rs b/src/main.rs --- a/src/main.rs +++ b/src/main.rs @@ -17,6 +17,7 @@ noecho(); nodelay(stdscr, true); keypad(stdscr, true); + curs_set(CURSOR_VISIBILITY::CURSOR_INVISIBLE); }; let end_ncurses = || { echo(); @@ -45,7 +46,7 @@ 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 @@ "single" => Border::Single, "double" => Border::Double, "strong" => Border::Strong, + "thin" => Border::Thin, "thick" => Border::Thick, "solid" => Border::Solid, arg @ _ => { @@ -287,6 +289,7 @@ Single, Double, Strong, + Thin, Thick, Solid } @@ -326,8 +329,9 @@ 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() } }