]> 4ch.mooo.com Git - 16.git/commitdiff
wwww
authorsparky4 <sparky4@cock.li>
Tue, 22 Mar 2016 19:02:08 +0000 (14:02 -0500)
committersparky4 <sparky4@cock.li>
Tue, 22 Mar 2016 19:02:08 +0000 (14:02 -0500)
src/bakapi.c

index 80ab7d4f1fa581dc207dfeca65fca6b41ce968f0..c1124f3b75983a126faa048adaba49f157da6bcb 100755 (executable)
@@ -83,13 +83,15 @@ main(int argc, char *argvar[])
 #else
                        VGAmodeX(0, &gvar);
 #endif
-                       //modexLeave();
                        // 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
-//                     printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n");  // prompt the user
-//                     clrstdin();
-                       scanf("%d", &key);
+                       //scanf("%d", &key);
+                       if(scanf("%d", &key) != 1)
+                       {
+                               printf("%d\n", key);
+                       }
+                       getch();
                        //if(key==3){xx=yy=0;} // crazy screen saver wwww
                        if(key==0){ d=0; }else{
                                gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]);