| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | [TSEPro] Re: compiler/editor interface |
From: "Sammy Mitchell"
@Date: Thu, 6 Feb 2003 08:48:26 -0500
@Sender: semware-owner{at}sawasdi.apana.org.au
>I don't want to redirect the compiler output, because I
>want to see the output as it happens in real time. Is it
>possible to Tee the output, so that it goes to a file and
>simultaneously to the screen?
Yes, using something like the following will show the output
as it is happening, and then will load the same in a TSE
window:
proc foo()
string out_fn[_MAXPATH_] = "foo.bar"
// remove the file where output is written
EraseDiskFile(out_fn)
// remove it from the editor if loaded
PushPosition()
EditFile(out_fn)
AbandonFile()
PopPosition()
// run tee32, which calls sc32, whose output is
// piped to out_fn
if not lDos("tee32.exe", "sc32.exe -? >" + out_fn)
Warn("error running tee32 -> sc32")
else
OneWindow()
HWindow()
EditFile(out_fn)
PrevWindow()
endif
end
foo()
Some notes:
The above simply runs sc32 asking for sc32's command line
options (the -? switch), and pipes the result to out_fn, but
also showing the results as it is happening, in a console
window.
This is a subset of what the compile macro does. Plus, the
benefit of the compile macro is that it does automatic error
parsing, as long as the error format is regular.
If you decide you do not want to see the error output until
it is complete, just add _START_HIDDEN_ to the lDos()
command above, as an additional last parameter. It is a
personal preference as to which one you want. Sometimes I
like seeing the console, sometimes I don't.
Note that the format of tee32 is:
tee32.exe pgm-to-run pgm-arguments >output_fn
Let me know if the above is (close?) to what you want.
--
Sammy Mitchell
--
TSEPro mailing list
---
[sawasdi.apana.org.au] (3:800/846.13)
* Origin: apana>>>>>fidonetSEEN-BY: 633/267 270 @PATH: 800/846 1 640/954 774/605 123/500 106/1 379/1 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.