We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab32cee commit c6d7f75Copy full SHA for c6d7f75
examples/Makefile
@@ -11,6 +11,8 @@ helloUnicode: helloUnicode.d
11
simpleColor: simpleColor.d
12
$(DMD)
13
14
+keyCode: keyCode.d
15
+ $(DMD)
16
17
clean:
18
@rm bin/*
examples/key_code.d renamed to examples/keyCode.d
@@ -1,13 +1,11 @@
1
+#!/usr/bin/rdmd -L-lncurses
2
//Modified by: 1100110
-
3
-import std.stdio: writefln;
+import std.stdio: writefln;
4
import deimos.ncurses.ncurses;
5
6
7
void main()
8
{
9
- //I'm going to assume that you've played with
10
- //a bunch of the other tutorials by now...
int ch;
initscr();
@@ -16,6 +14,7 @@ void main()
keypad(stdscr, true);
ch = getch();
+
19
endwin();
20
writefln("The key pressed is: %d", ch);
21
}
0 commit comments