Created
October 13, 2018 15:03
-
-
Save buffet/0e2b9324e9c37766a93828d73619cd00 to your computer and use it in GitHub Desktop.
leberkaes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ncurses.h> | |
int | |
main(void) | |
{ | |
int ch; | |
initscr(); | |
cbreak(); | |
noecho(); | |
keypad(stdscr, TRUE); | |
for (;;) { | |
ch = getch(); | |
addch(ch); | |
putc(ch, stderr); | |
fflush(stderr); | |
refresh(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compile with:
make LDFLAGS="-lncurses" leberkaes
Usage:
leberkaes 2> file
orleberkase 2>> file
Deletion is handles via
sed
or similar, which handle regex way better, and allow to fix stuff without having to move around to much, so this is actually a feature.