I've just started looking at Squeak and can't seem to print to Transcript. I'm wondering if I'm doing it properly.
I've written, Transcript show: 'Hello world!' into the Workspace window but nothing shows up in the open Transcript window.
What am I doing wrong?
Thanks, Harry
On Saturday 20 January 2007 04:08, Harry Mueller wrote:
I've just started looking at Squeak and can't seem to print to Transcript. I'm wondering if I'm doing it properly.
I've written, Transcript show: 'Hello world!' into the Workspace window but nothing shows up in the open Transcript window.
What am I doing wrong?
You probably need a cr in to get the output buffer flushed. vis: Transcript show: 'Hello world!'; cr.
I did a simple loop, too, and it worked. I forgot to add the 'cr' message (I don't use the Transcript that much lately) and it still worked.
#( 1 2 3 4 5 ) do: [ :each | Transcript show: each. ]
I get '12345' in the Transcript window.
-----Original Message----- You probably need a cr in to get the output buffer flushed. vis: Transcript show: 'Hello world!'; cr.
Oops, the block should be [ :each | Transcript show: each asString ]. I was replying from memory - a very bad habit of mine.
Best of luck.
-----Original Message----- From: beginners-bounces@lists.squeakfoundation.org [mailto:beginners-bounces@lists.squeakfoundation.org] On Behalf Of Mark Bailey Sent: Monday, January 22, 2007 1:30 PM To: A friendly place to get answers to even the most basic questionsaboutSqueak. Subject: RE: [Newbies] Problem printing from Workspace to Transcript
I did a simple loop, too, and it worked. I forgot to add the 'cr' message (I don't use the Transcript that much lately) and it still worked.
#( 1 2 3 4 5 ) do: [ :each | Transcript show: each. ]
I get '12345' in the Transcript window.
-----Original Message----- You probably need a cr in to get the output buffer flushed. vis: Transcript show: 'Hello world!'; cr. _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Harry Mueller wrote:
I've just started looking at Squeak and can't seem to print to Transcript. I'm wondering if I'm doing it properly.
I've written, Transcript show: 'Hello world!' into the Workspace window but nothing shows up in the open Transcript window.
This might sound stupid, but did you execute the expression, also known as "do it"?
place the cursor on the line of "Transcript show: 'Hello world!'" and press Ctl+d.
What am I doing wrong?
Thanks, Harry
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
I just downloaded the latest version for Macintosh OS X and tried it. No problem.
________________________________
From: beginners-bounces@lists.squeakfoundation.org [mailto:beginners-bounces@lists.squeakfoundation.org] On Behalf Of Harry Mueller Sent: Friday, January 19, 2007 10:08 AM To: beginners@lists.squeakfoundation.org Subject: [Newbies] Problem printing from Workspace to Transcript
I've just started looking at Squeak and can't seem to print to Transcript. I'm wondering if I'm doing it properly.
I've written, Transcript show: 'Hello world!' into the Workspace window but nothing shows up in the open Transcript window.
What am I doing wrong?
Thanks, Harry
beginners@lists.squeakfoundation.org