From bb63758c2b59aa00069062638303113f0b054863 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 17 Feb 2016 14:20:41 -0600 Subject: [PATCH] wwww --- git_con.fig | 1 - src/bakapi.c | 1 + src/lib/bakapee.c | 7 +++++++ src/lib/bakapee.h | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/git_con.fig b/git_con.fig index 73eb8c23..1712ab98 100755 --- a/git_con.fig +++ b/git_con.fig @@ -3,7 +3,6 @@ filemode = true bare = false logallrefupdates = true - ignorecase = true [remote "x4"] url = ssh://sparky4@4ch.mooo.com:26/var/www/16/16.git fetch = +refs/heads/*:refs/remotes/origin/* diff --git a/src/bakapi.c b/src/bakapi.c index 16a0c77f..a63cf92d 100755 --- a/src/bakapi.c +++ b/src/bakapi.c @@ -86,6 +86,7 @@ main(int argc, char *argvar[]) // user imput switch fprintf(stderr, "xx=%d yy=%d\n", bakapee.xx, bakapee.yy); printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n", getch()); // prompt the user + clrstdin(); scanf("%d", &key); //if(key==3){xx=yy=0;} // crazy screen saver wwww if(key==0){ d=0; }else{ diff --git a/src/lib/bakapee.c b/src/lib/bakapee.c index 000ac84a..e553e10c 100755 --- a/src/lib/bakapee.c +++ b/src/lib/bakapee.c @@ -22,6 +22,13 @@ #include "src/lib/bakapee.h" +/* clrstdin() clear any leftover chars tha may be in stdin stream */ +void clrstdin() +{ + int ch = 0; + while( ( ch = getchar() ) != '\n' && ch != EOF ); +} + //color ‚Ä‚·‚Æ void colortest(page_t *page, bakapee_t *pee) { diff --git a/src/lib/bakapee.h b/src/lib/bakapee.h index df74c1bd..1f9c94e5 100755 --- a/src/lib/bakapee.h +++ b/src/lib/bakapee.h @@ -46,6 +46,7 @@ typedef struct { byte coor; } bakapee_t; +void clrstdin(); void colortest(page_t *page, bakapee_t *pee); void colorz(page_t *page, bakapee_t *pee); void ssd(page_t *page, bakapee_t *pee, word svq); -- 2.39.5