From f333658aa8be007128472b66291124c348e935ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Tue, 7 Jul 2020 19:09:43 -0300 Subject: Ignore jet2 --- .gitignore | 1 + Makefile | 2 +- jet2 | Bin 23768 -> 0 bytes jet2.cpp | 4 +--- 4 files changed, 3 insertions(+), 4 deletions(-) delete mode 100755 jet2 diff --git a/.gitignore b/.gitignore index 2edc120..a73d53b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ jet +jet2 diff --git a/Makefile b/Makefile index 179f7b1..c4d3e50 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ FLAGS=-ggdb -O0 -lcurses $(shell ncursesw6-config --cflags --libs) -_PHONY:all +_PHONY=all all:jet jet2 diff --git a/jet2 b/jet2 deleted file mode 100755 index aeb3f78..0000000 Binary files a/jet2 and /dev/null differ diff --git a/jet2.cpp b/jet2.cpp index 791bd14..729fbc7 100644 --- a/jet2.cpp +++ b/jet2.cpp @@ -43,9 +43,7 @@ int main(int argc, char *argv[]) { write(s, msg, len); read(s, view, window_width * window_height); for (int i = 0; i < window_width * window_height; i++) { - if (view[i]) { - printw("%c", view[i]); - } + printw("%c", view[i]); } memset(msg, 0, 32); -- cgit v1.2.3