remove shfx subproject
This commit is contained in:
parent
3c2977d76b
commit
0fcb8143cf
2 changed files with 1 additions and 49 deletions
6
Makefile
6
Makefile
|
|
@ -29,10 +29,6 @@ $(BIN)/pw-test: $(addprefix $(LIB)/, main.c)
|
|||
$(CC) $(CFLAGS) -o $(BUILD)/pw-test.o -c $^
|
||||
$(CLD) $(CLDFLAGS) -o $@ $(BUILD)/pw-test.o
|
||||
|
||||
$(BIN)/shfx: shfx/main.c
|
||||
$(CC) $(CFLAGS) -o $(BUILD)/shfx.o -c $^
|
||||
$(CLD) $(CLDFLAGS) -lncurses -o $@ $(BUILD)/shfx.o
|
||||
|
||||
$(BIN)/dorne: $(addprefix $(BUILD)/,dorne.o ilovecurses.o)
|
||||
$(CLD) $(CLDFLAGS) -lncurses -o $@ $^
|
||||
|
||||
|
|
@ -49,7 +45,7 @@ $(BUILD)/epty.o: $(addprefix $(CLI)/, child.c epty.c _pty.c)
|
|||
# === DEVELOPMENT TARGETS ===
|
||||
.PHONY: debug run test
|
||||
debug:
|
||||
$(MAKE) all \
|
||||
$(MAKE) all \
|
||||
CFLAGS="$(CFLAGS) $(CFLAGS_DBG)" \
|
||||
CLDFLAGS="$(CLDFLAGS) $(CLDFLAGS_DBG)"
|
||||
run: debug
|
||||
|
|
|
|||
44
shfx/main.c
44
shfx/main.c
|
|
@ -1,44 +0,0 @@
|
|||
#include <math.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <ncurses.h>
|
||||
|
||||
#define BASE_DELAY 1000000
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
// Curses init
|
||||
WINDOW *screen = initscr();
|
||||
start_color();
|
||||
nodelay(screen, 1);
|
||||
cbreak();
|
||||
noecho();
|
||||
curs_set(0);
|
||||
keypad(screen, TRUE);
|
||||
|
||||
// Color pairs
|
||||
init_pair(1, COLOR_BLACK, COLOR_CYAN);
|
||||
|
||||
// Set background
|
||||
wbkgd(screen, COLOR_PAIR(1));
|
||||
|
||||
attron(COLOR_PAIR(1));
|
||||
attron(A_BOLD);
|
||||
int counter = 0;
|
||||
while (1) {
|
||||
mvprintw(0, 0, "COUNTER %d", counter++);
|
||||
refresh();
|
||||
|
||||
switch (getch()) {
|
||||
case 'q':
|
||||
goto end;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
usleep(BASE_DELAY);
|
||||
}
|
||||
|
||||
end:
|
||||
endwin();
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue