home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!concert!sas!mozart.unx.sas.com!walker
- From: walker@twix.unx.sas.com (Doug Walker)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SAS 6.00
- Message-ID: <By6D15.BzB@unx.sas.com>
- Date: 23 Nov 92 15:15:05 GMT
- References: <6RaiuB1w165w@lakes.trenton.sc.us>
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Organization: SAS Institute Inc.
- Lines: 36
- Originator: walker@twix.unx.sas.com
- Nntp-Posting-Host: twix.unx.sas.com
-
-
- In article <6RaiuB1w165w@lakes.trenton.sc.us>, mr_scary@lakes.trenton.sc.us (Chris Hurley) writes:
- |> When doing console output from my SAS/C 6 program, it seems that the
- |> output window on the Workbench becomes active preventing further input on
- |> my custom screen until it is clicked on. (printf being the method of
- |> output) Is this normal and is there any way to surpress this (other
- |> than not using printf)
-
- This is a function of the console device, which is a system device
- that manages the console output window. When the console window
- opens, it becomes active. Possible solutions:
-
- 1. Modify the __stdiov37 flags variable to remove the /AUTO keyword.
- This will mean the window will open before your main() is
- called, so when you open your window, it will deactivate the
- console window automatically in favor of the new window.
- Example:
-
- char __stdiov37[] = "/CLOSE/WAIT"; // No /AUTO flag
-
- 2. Call the Intuition function ActivateWindow() on your window after
- the first time you call printf().
-
- 3. Open your own window, then use fopen and the /WINDOW 0xnnnn switch
- to the console device to open the console device on that window.
- Use the resulting file handle with fprintf instead of using
- printf. This way your output goes to your custom screen, too.
-
- --
- *****
- =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
- *|. o.| || 1200/2400/9600 Dual
- | o |// For all you do, this bug's for you!
- ======
- usenet: walker@unx.sas.com bix: djwalker
- Any opinions expressed are mine, not those of SAS Institute, Inc.
-