summaryrefslogtreecommitdiff
path: root/math/kaskade/files/patch-bb
blob: 8fa9bbaa29ff09b523a86d5bb5e853f8b5a2eafa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
*** kaskade.cc.orig	Wed Jul  9 14:06:44 1997
--- kaskade.cc	Wed Jul  9 14:09:41 1997
***************
*** 101,107 ****
      if (Continue == True) return noPicture;
      if (!Cmd.isTrue("pause")) { Continue = True; return noPicture; }
  
!     char s[5]; cout << " <CR>"; cout.flush(); gets(s); strToLower(s);
      if (strchr(s,'q') || strchr(s,'e')) { cout << "\nEXIT FORCED\n"; exit(1); }
      if (strchr(s,'c') || strchr(s,'g')) { Continue = True; return noPicture;  }
      if (strchr(s,'p') || strchr(s,'P')) { return picture;  }
--- 101,107 ----
      if (Continue == True) return noPicture;
      if (!Cmd.isTrue("pause")) { Continue = True; return noPicture; }
  
!     char s[5]; cout << " <CR>"; cout.flush(); fgets(s,256,stdin); strToLower(s);
      if (strchr(s,'q') || strchr(s,'e')) { cout << "\nEXIT FORCED\n"; exit(1); }
      if (strchr(s,'c') || strchr(s,'g')) { Continue = True; return noPicture;  }
      if (strchr(s,'p') || strchr(s,'P')) { return picture;  }
***************
*** 110,116 ****
  
  void PauseAnyWay()
  { 
!     char s[5]; cout << " <CR>"; cout.flush(); gets(s); strToLower(s);
      if (strchr(s,'q') || strchr(s,'e')) { cout << "\nExit forced\n"; exit(1); }
  }
  //-------------------------------------------------------------------------
--- 110,116 ----
  
  void PauseAnyWay()
  { 
!     char s[5]; cout << " <CR>"; cout.flush(); fgets(s,256,stdin); strToLower(s);
      if (strchr(s,'q') || strchr(s,'e')) { cout << "\nExit forced\n"; exit(1); }
  }
  //-------------------------------------------------------------------------