Added way to print the snake with ascii extended

But ncurses doesn't seem to support ascii extended
so it looks bizzare
This commit is contained in:
Uttarayan Mondal
2021-01-20 20:52:17 +05:30
parent 295fba633e
commit c2eff08c9f
8 changed files with 109 additions and 20 deletions
+4
View File
@@ -17,6 +17,10 @@ fn main() {
noecho();
let (mut mlines, mut mcols): (i32, i32) = (0, 0);
getmaxyx(stdscr(), &mut mlines, &mut mcols);
// let (mlines, mcols) = match getmaxyx(stdscr()) {
// Ok(size) => (size.lines, size.columns),
// Err(e) => panic!(e),
// };
if (mlines < 20) || (mcols < 35) {
refresh();
endwin();