Skip to content

Commit

Permalink
Merge pull request mtoyoda#5 from iiSeymour/master
Browse files Browse the repository at this point in the history
Removed blinking cursor and non-blocking getch()
  • Loading branch information
mtoyoda committed Jan 4, 2014
2 parents d8f076a + 2605b55 commit 193acb1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sl.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*========================================
* sl.c: SL version 5.0
* Copyright 1993,1998,2013
* Toyoda Masashi
* Toyoda Masashi
* (mtoyoda@acm.org)
* Last Modified: 2013/ 5/ 5
*========================================
Expand Down Expand Up @@ -78,6 +78,8 @@ int main(int argc, char *argv[])
initscr();
signal(SIGINT, SIG_IGN);
noecho();
curs_set(0);
nodelay(stdscr, TRUE);
leaveok(stdscr, TRUE);
scrollok(stdscr, FALSE);

Expand All @@ -91,6 +93,7 @@ int main(int argc, char *argv[])
else {
if (add_D51(x) == ERR) break;
}
getch();
refresh();
usleep(40000);
}
Expand All @@ -116,7 +119,7 @@ int add_sl(int x)
= {LCAR1, LCAR2, LCAR3, LCAR4, LCAR5, LCAR6, DELLN};

int i, y, py1 = 0, py2 = 0, py3 = 0;

if (x < - LOGOLENGTH) return ERR;
y = LINES / 2 - 3;

Expand Down

0 comments on commit 193acb1

Please sign in to comment.