Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rti-sel.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!mcnc!rti-sel!trt From: trt@rti-sel.UUCP (Tom Truscott) Newsgroups: net.games Subject: Re: Battleships Message-ID: <266@rti-sel.UUCP> Date: Fri, 21-Jun-85 12:15:29 EDT Article-I.D.: rti-sel.266 Posted: Fri Jun 21 12:15:29 1985 Date-Received: Mon, 24-Jun-85 04:16:50 EDT References: <1264@cbosgd.UUCP> <290@ucdavis.UUCP> Organization: Research Triangle Institute, NC Lines: 39 Here is a diff which can be used to get battleships to run on 4.2 BSD. I sure wish it used cursor control to aim shots rather than requiring x,y coordinates. I might play it then. Tom Truscott ----------------- 8a9,13 > /* rti-sel!trt: hack to support old-fashioned curses */ > #ifndef A_REVERSE > #define wattron(w, foo) wstandout(w) > #define wattroff(w, foo) wstandend(w) > #endif 498c503,508 < errwin=newwin(1,COLS,23,0); --- > /* rti-sel!trt: fix for window manager */ > errwin=newwin(1,COLS,LINES-1,0); > if (errwin == NULL) { > fprintf(stderr, "cannot create error window\n"); > return; > } 613a624,641 > > #ifndef A_REVERSE > /* need to define some other routines */ > cbreak() > { > raw(); /* sure hope this is good enough */ > } > > flash() > { > extern int _putchar(); > > if (VB) > _puts(VB); > else > putchar('\07'); > } > #endif