summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--snow.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/snow.c b/snow.c
index 1298618..b234dab 100644
--- a/snow.c
+++ b/snow.c
@@ -45,6 +45,10 @@ static int d_flag = 0;
char flake[] = ".*#";
+#ifndef nitems
+#define nitems(s) (sizeof(s) / sizeof((s)[0]))
+#endif
+
void
resize(int signo)
{
@@ -71,6 +75,10 @@ main()
signal(SIGHUP, die);
initscr();
+ noecho();
+ nonl();
+ leaveok(stdscr, TRUE);
+ scrollok(stdscr, FALSE);
ocurs = curs_set(0);
TAILQ_INIT(&head);
srandom(time(NULL));