Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!harvard!husc6!topaz!nike!sri-spam!parcvax!hplabs!sdcrdcf!burdvax!bpa!cbmvax!carolyn From: carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner) Newsgroups: net.micro.amiga Subject: Re: printf in a wondow? Message-ID: <593@cbmvax.cbmvax.cbm.UUCP> Date: Fri, 8-Aug-86 19:05:49 EDT Article-I.D.: cbmvax.593 Posted: Fri Aug 8 19:05:49 1986 Date-Received: Mon, 11-Aug-86 03:44:57 EDT References: <811@ssc-vax.UUCP> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner) Distribution: net Organization: Commodore Technology, West Chester, PA Lines: 25 In article <811@ssc-vax.UUCP> gary@ssc-vax.UUCP (Gary J Albert) writes: > > Recently in this group there was a discussion concerning how to > get 'printf' or one of its derivatives to print to a window opened > by a program rather than to the cli window. If a solution was > ever posted then I must have missed it. If some kind soul could > send me anything that might help I would sure appreciate it. > For an intuition window, sprintf() to a buffer, then use Text() or console.device io to output the formatted string. For a DOS con: window, sprintf() to a buffer, then use Write() to output the formatted string. Alternately, look in LStartup.asm and AStartup.asm to see how a DOS con: window can be made stdin, stdout, stderr. This will allow you to printf(), getchar(), etc. in the DOS window. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=