Added 'C_C++/arrows.cpp'

This commit is contained in:
anon 2024-07-22 19:39:19 +02:00
parent 3b3b6d0da9
commit 3d0fc9da0c

14
C_C++/arrows.cpp Normal file
View 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);
}
}