|
Eliot Miranda-2 |
|
|
On Tue, Jan 31, 2012 at 8:35 PM, S Krish <[hidden email]> wrote: I cant get the stdin on FileStream to work. Just blocks irrespective of what I do in sending characters with enter.. or any other trials .. will check a little more I assure you it does work with the right image-level code. Here's an interaction with a 3.8/Qwaq derived image on Mac OS:
McStalker.macbuild$ uname -a Darwin McStalker 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64 i386 McStalker.macbuild$ oscfvm ~/Cog/startreader.image
squeak> DateAndTime now! 2012-02-03T13:04:24-08:00 squeak> Smalltalk quit! McStalker.macbuild$ On linux: [eliot@mcqfes ~]$ oscogvm/coglinux/squeak Cog/startreader.image
squeak> Smalltalk quit! [eliot@mcqfes ~]$ uname -a Linux mcqfes 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux [eliot@mcqfes ~]$ oscogvm/coglinux/squeak Cog/startreader.image
squeak> DateAndTime now! 2012-02-03T13:05:58-08:00 squeak> Smalltalk quit! [eliot@mcqfes ~]$ And windows: U:\Cog>ver Microsoft Windows XP [Version 5.1.2600] U:\Cog>oscogvm\cygwinbuild\build\vm\CroquetConsole.exe startreader.image squeak> DateAndTime now! 2012-02-03T13:07:39-08:00
squeak> Smalltalk quit! U:\Cog> It's crude, using chunk format, but demonstrates the functionality and is very simple. To get this to work requires the attached nextChunkNoTag hack since restoreState:with: seems unreliable (it implements skip: -1, which is used in peek). For Windows you need the 2519 or newer Cog VM.
best, Eliot |
| Powered by Nabble | See how NAML generates this page |