remove non-printable characters
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 13 Jun 1988 03:13:49 +0000 (19:13 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 13 Jun 1988 03:13:49 +0000 (19:13 -0800)
SCCS-vsn: games/trek/autover.c 5.3
SCCS-vsn: games/trek/destruct.c 5.3
SCCS-vsn: games/trek/lose.c 5.3
SCCS-vsn: games/trek/ram.c 5.3
SCCS-vsn: games/mille/misc.c 5.3

usr/src/games/mille/misc.c
usr/src/games/trek/autover.c
usr/src/games/trek/destruct.c
usr/src/games/trek/lose.c
usr/src/games/trek/ram.c

index 08dcb58..42382d0 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)misc.c     5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)misc.c     5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include       "mille.h"
 #endif /* not lint */
 
 #include       "mille.h"
@@ -39,7 +39,7 @@ char  *str;
        stdscr = Score;
        mvprintw(ERR_Y, ERR_X, str, arg);
        clrtoeol();
        stdscr = Score;
        mvprintw(ERR_Y, ERR_X, str, arg);
        clrtoeol();
-       putchar('\a');
+       putchar('\07');
        refresh();
        stdscr = Board;
        return FALSE;
        refresh();
        stdscr = Board;
        return FALSE;
@@ -68,7 +68,7 @@ getcard()
                        c = 0;
                        break;
                  default:
                        c = 0;
                        break;
                  default:
-                       putchar('\a');
+                       putchar('\07');
                        addch('\b');
                        if (!isprint(c))
                                addch('\b');
                        addch('\b');
                        if (!isprint(c))
                                addch('\b');
@@ -87,7 +87,7 @@ getcard()
                                        goto cont;
                                }
                                else
                                        goto cont;
                                }
                                else
-                                       write(0, "\a", 1);
+                                       write(0, "\07", 1);
                        return c;
                }
 cont:          ;
                        return c;
                }
 cont:          ;
@@ -178,7 +178,7 @@ register int        promptno; {
                  default:
                        addstr(unctrl(c));
                        refresh();
                  default:
                        addstr(unctrl(c));
                        refresh();
-                       putchar('\a');
+                       putchar('\07');
                        break;
                }
        }
                        break;
                }
        }
index 0080f30..572ba8d 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)autover.c  5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)autover.c  5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 # include      "trek.h"
 #endif /* not lint */
 
 # include      "trek.h"
@@ -39,7 +39,7 @@ autover()
        double                  dist;
        register int            course;
 
        double                  dist;
        register int            course;
 
-       printf("\aRED ALERT:  The %s is in a supernova quadrant\n", Ship.shipname);
+       printf("\07RED ALERT:  The %s is in a supernova quadrant\n", Ship.shipname);
        printf("***  Emergency override attempts to hurl %s to safety\n", Ship.shipname);
        /* let's get our ass out of here */
        Ship.warp = 6.0 + 2.0 * franf();
        printf("***  Emergency override attempts to hurl %s to safety\n", Ship.shipname);
        /* let's get our ass out of here */
        Ship.warp = 6.0 + 2.0 * franf();
index d062aa6..5370078 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)destruct.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)destruct.c 5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 # include      "trek.h"
 #endif /* not lint */
 
 # include      "trek.h"
@@ -44,7 +44,7 @@ destruct()
 
        if (damaged(COMPUTER))
                return (out(COMPUTER));
 
        if (damaged(COMPUTER))
                return (out(COMPUTER));
-       printf("\n\a --- WORKING ---\a\n");
+       printf("\n\07 --- WORKING ---\07\n");
        sleep(3);
        /* output the count 10 9 8 7 6 */
        for (i = 10; i > 5; i--)
        sleep(3);
        /* output the count 10 9 8 7 6 */
        for (i = 10; i > 5; i--)
index aa90565..30a85b2 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)lose.c     5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)lose.c     5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 # include      "trek.h"
 #endif /* not lint */
 
 # include      "trek.h"
@@ -34,7 +34,7 @@ char  *Losemsg[] =
        "You have been caught in a supernova",
        "You just suffocated in outer space",
        "You could not be rematerialized",
        "You have been caught in a supernova",
        "You just suffocated in outer space",
        "You could not be rematerialized",
-       "\n\032\014 ***\a Ship's hull has imploded\a ***",
+       "\n\032\014 ***\07 Ship's hull has imploded\07 ***",
        "You have burned up in a star",
        "Well, you destroyed yourself, but it didn't do any good",
        "You have been captured by Klingons and mercilessly tortured",
        "You have burned up in a star",
        "Well, you destroyed yourself, but it didn't do any good",
        "You have been captured by Klingons and mercilessly tortured",
index 0b36e7a..05d3bf1 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)ram.c      5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)ram.c      5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 # include      "trek.h"
 #endif /* not lint */
 
 # include      "trek.h"
@@ -33,7 +33,7 @@ int   ix, iy;
        register int            i;
        register char           c;
 
        register int            i;
        register char           c;
 
-       printf("\aRED ALERT\a: collision imminent\n");
+       printf("\07RED ALERT\07: collision imminent\n");
        c = Sect[ix][iy];
        switch (c)
        {
        c = Sect[ix][iy];
        switch (c)
        {