From 1e3913850a672c67670874d48cc4b17421104569 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 22 Mar 2016 14:02:08 -0500 Subject: [PATCH] wwww --- src/bakapi.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/bakapi.c b/src/bakapi.c index 80ab7d4f..c1124f3b 100755 --- a/src/bakapi.c +++ b/src/bakapi.c @@ -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]); -- 2.39.5