Utoljára aktív 1730781428

curses.nv Eredeti Playground
1|#| constant, @char-x, 5
2|#| constant, @char-y, 5
3|#| constant, @char, 64
4
5| run the program |
6 start ncurses,
7 draw the player,
8 read a character,
9 clean up ncurses,
10
11
12| start ncurses |
13 @initscr,
14 start ncurses 2
15
16| start ncurses 2 |
17 @cbreak,
18 @noecho,
19 @set-cursor
20
21| draw the player |
22 @char-x:5,
23 @char-y:5,
24 @char:64,
25 draw the player 2
26
27| draw the player 2 |
28 @put-char
29
30| read a character |
31 @get-char
32
33| clean up ncurses |
34 @cursor-type,
35 @set-cursor,
36 @nocbreak,
37 @echo,
38 clean up ncurses 2
39
40| clean up ncurses 2 |
41 @set-cursor,
42 clean up ncurses 3
43
44| clean up ncurses 3 |
45 @endwin
46
47|| run the program