[net.micro.amiga] printf in a wondow?

gary@ssc-vax.UUCP (07/30/86)

	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.



				Thanks in advance,
				Gary Albert
				Boieng Aerospace Co.
				ssc-vax!gary

carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner) (08/09/86)

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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=