home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16242 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  2.1 KB

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