]> 4ch.mooo.com Git - 16.git/commitdiff
wwww
authorsparky4 <sparky4@cock.li>
Wed, 17 Feb 2016 20:20:41 +0000 (14:20 -0600)
committersparky4 <sparky4@cock.li>
Wed, 17 Feb 2016 20:20:41 +0000 (14:20 -0600)
git_con.fig
src/bakapi.c
src/lib/bakapee.c
src/lib/bakapee.h

index 73eb8c230e95c80af831b81ad5a3346bae289483..1712ab98858cf727f9aec24535630217fae36bd0 100755 (executable)
@@ -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/*
index 16a0c77f07b49f2f79ca54072774cad219f70ddd..a63cf92d7a70aa82a53342968db0c464f521e810 100755 (executable)
@@ -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{
index 000ac84a1e5075b4300f5b7215c1b077d6a5ba5e..e553e10c2cc8ce587daae059ea3a19022e064f1b 100755 (executable)
 
 #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 \82Ä\82·\82Æ
 void colortest(page_t *page, bakapee_t *pee)
 {
index df74c1bda3018df4e17596da2f3161a58ea3e349..1f9c94e59af0f063ad11d201ff598137deef7bde 100755 (executable)
@@ -46,6 +46,7 @@ typedef struct {
        byte coor;\r
 } bakapee_t;\r
 \r
+void clrstdin();\r
 void colortest(page_t *page, bakapee_t *pee);\r
 void colorz(page_t *page, bakapee_t *pee);\r
 void ssd(page_t *page, bakapee_t *pee, word svq);\r