Added 'C_C++/arrows.cpp'
This commit is contained in:
parent
3b3b6d0da9
commit
3d0fc9da0c
14
C_C++/arrows.cpp
Normal file
14
C_C++/arrows.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
// @BAKE g++ $@ -o $*.out $(pkg-config --cflags --libs ncurses) && xterm -e $PWD/$*.out
|
||||
#include <ncurses.h>
|
||||
|
||||
signed main() {
|
||||
initscr();
|
||||
raw();
|
||||
keypad(stdscr, true);
|
||||
while (true) {
|
||||
int c = wgetch(stdscr);
|
||||
move(0, 0);
|
||||
clrtoeol();
|
||||
printw("%d", c);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user