curses.nv
· 773 B · Text
Raw
Playground
|#| constant, @char-x, 5
|#| constant, @char-y, 5
|#| constant, @char, 64
| run the program |
start ncurses,
draw the player,
read a character,
clean up ncurses,
| start ncurses |
@initscr,
start ncurses 2
| start ncurses 2 |
@cbreak,
@noecho,
@set-cursor
| draw the player |
@char-x:5,
@char-y:5,
@char:64,
draw the player 2
| draw the player 2 |
@put-char
| read a character |
@get-char
| clean up ncurses |
@cursor-type,
@set-cursor,
@nocbreak,
@echo,
clean up ncurses 2
| clean up ncurses 2 |
@set-cursor,
clean up ncurses 3
| clean up ncurses 3 |
@endwin
|| run the program
| 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 |