Skip to content

Commit c6d7f75

Browse files
committed
fixed keyCode.d
1 parent ab32cee commit c6d7f75

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

examples/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ helloUnicode: helloUnicode.d
1111
simpleColor: simpleColor.d
1212
$(DMD)
1313

14+
keyCode: keyCode.d
15+
$(DMD)
1416

1517
clean:
1618
@rm bin/*
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1+
#!/usr/bin/rdmd -L-lncurses
12
//Modified by: 1100110
2-
3-
import std.stdio: writefln;
3+
import std.stdio: writefln;
44
import deimos.ncurses.ncurses;
55

66

77
void main()
88
{
9-
//I'm going to assume that you've played with
10-
//a bunch of the other tutorials by now...
119
int ch;
1210

1311
initscr();
@@ -16,6 +14,7 @@ void main()
1614
keypad(stdscr, true);
1715

1816
ch = getch();
17+
1918
endwin();
2019
writefln("The key pressed is: %d", ch);
2120
}

0 commit comments

Comments
 (0)