<br><br><div class="gmail_quote">On Sun, Sep 26, 2010 at 10:18 PM, Eliot Miranda <span dir="ltr"><<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Levente,<br><br><div class="gmail_quote"><div class="im">On Sun, Sep 26, 2010 at 7:13 PM, Levente Uzonyi <span dir="ltr"><<a href="mailto:leves@elte.hu" target="_blank">leves@elte.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Sun, 26 Sep 2010, Eliot Miranda wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Chris,<br>
<br>
I have code for this, but right now I need to crack some crabs, so I<br>
don't have time to verify this code in 4.1 :) Use at your own risk ;) The<br>
most important thing is the StandardFileStream>>stdioHandles primitive for<br>
accessing the streams. N.B. some work needs to be done on the win32<br>
FilePlugin support code before this will work on Windows.<br>
</blockquote>
<br></div>
All three streams seem to be working on Windows Vista with the latest CogVM.<br>
This seems to be a really cool feature, though I think CrLfFileStream should be deprecated, so MultiByteFileStream support would be better IMO.<br></blockquote><div><br></div></div><div>The streams work if directed to files. But they will /not/ work if directed to input or output in a console window. I should have been clearer, sorry. The work needed is in platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c where if input and/or output is the console we need to use ReadConsole & WriteConsole in place of ReadFile & WriteFile.</div>
</div></blockquote><div><br></div><div>Hmmm. Turns out I was confused about this. One doesn't need ReadConsole & WriteConsole; ReadFile & WriteFile should do just fine. But the Cog code doesnt work in either an MS-DOS console window or a cygwin console window. If anyone's familiar with this area of Windows please feel free to take a look...</div>
<div><br></div><div>TIA</div><div>Eliot</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote">
<div><br></div><div>cheers</div><div>Eliot</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font color="#888888">
<br>
<br>
Levente</font><div><div></div><div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
On Sun, Sep 26, 2010 at 2:46 PM, Chris Muller <<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am developing a simple "CommandLineProcessor" facade for easily<br>
transferring command-line arguments simply as block-arguments, so you<br>
can write smalltalk scripts in vi:<br>
<br>
CommandLineProcessor do: [ : arg1 : arg2 : arg3 | "args come in as<br>
Strings" ... ]<br>
<br>
and also for directing Notifications and Warnings messages to stdOut,<br>
and Errors to stdErr. It relies on OSProcess to write to stdOut and<br>
stdErr for this. However, ever since switching to Cog, writing to<br>
these streams does not seem to redirect out to Linux..<br>
<br>
I don't know whether writing to these streams makes me<br>
Linux-dependent, but it really is nice to be able to write Linux<br>
scripts that employ Squeak in the back-end, but operate normally like<br>
other shell programs in the terminal window and with redirecting<br>
output, etc.<br>
<br>
- Chris<br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</div></div></blockquote></div></div><br>
</blockquote></div><br>