Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830919); site kvvax4.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!mcnc!decvax!genrad!panda!talcott!harvard!seismo!mcvax!kvport!kvvax4!vidar From: vidar@kvvax4.UUCP (Vidar S|rensen) Newsgroups: net.unix-wizards Subject: Typescript of simple interactive programs, help wanted Message-ID: <585@kvvax4.UUCP> Date: Thu, 21-Feb-85 05:29:49 EST Article-I.D.: kvvax4.585 Posted: Thu Feb 21 05:29:49 1985 Date-Received: Wed, 27-Feb-85 04:53:48 EST Organization: Kongsberg Vaapenfabrikk, CTG, P.O Box 25, N-3601 Kongsberg, Norway Lines: 34 Can someone help me withe the following problem: I want to typescript an interactive C or Pascal program on UNIX (4.1Bsd) but can't get it to work. The problem is possibly that the i/o goes via pipes from/to the script process, but I can't afford the time to study it. Problem examples: ------------------------------------------------ #include main() { int i; printf("number please "); while ( scanf("%d",&i) != EOF) { printf("That was %d\n",i); printf("number please "); } } ------------------------------------------------ program junk(input,output); var i:integer; begin write('number please?'); while not eof do begin read(i); writeln('that was a ',i:2); write('number please?'); end end . ----------------------------------------------- Vidar Sorensen ({decvax,philabs}!mcvax!kvport!kvvax4!vidar) A/S Kongsberg Vaapenfabrikk, P.O.Box 25, N-3601 Kongsberg