Write to Console in Headless app

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Write to Console in Headless app

Postby tstalzer » Wed Sep 30, 2009 12:44 am

Hi

Our application writes some messages to the console in an headless application. Up to 7.5.2 we used
Code: Select all
Transcript show: 'XXXX';cr

In VA8.0 this seems not to be working anymore. What is the recommended way to write messages to the console window in 8.0?
--Thomas
tstalzer
[|]
 
Posts: 65
Joined: Mon Oct 16, 2006 12:07 am
Location: Palma de Mallorca - Spain

Re: Write to Console in Headless app

Postby marten » Wed Sep 30, 2009 2:08 am

tstalzer wrote:Hi

Our application writes some messages to the console in an headless application. Up to 7.5.2 we used
Code: Select all
Transcript show: 'XXXX';cr

In VA8.0 this seems not to be working anymore. What is the recommended way to write messages to the console window in 8.0?
--Thomas


I think this functionality is done via EsTTYTools class - even in the preStartUp method they set an instance of TranscriptTTY to global variable Transcript. StsTranscript and TranscriptTTY have more or less the same interface ...

Marten
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: Write to Console in Headless app

Postby wembley » Wed Sep 30, 2009 4:35 am

tstalzer wrote:Our application writes some messages to the console in an headless application. Up to 7.5.2 we used
Code: Select all
Transcript show: 'XXXX';cr

In VA8.0 this seems not to be working anymore. What is the recommended way to write messages to the console window in 8.0?

Can you please be a little more specific -- what do you mean by "seems not to be working anymore."?
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC

Re: Write to Console in Headless app

Postby tstalzer » Wed Sep 30, 2009 5:25 am

Hi John

We want to show version and package information upon startup of the headless application. When starting the application in a console window under Windows, this information is shown in the Console window.

In 7.5.2, we get

console_7.5.2.png
console_7.5.2.png (56.95 KiB) Viewed 398 times


In 8.0

console_8.0.png
console_8.0.png (37.2 KiB) Viewed 398 times


We have tried using

Transcript show: '<message>';cr.
TranscriptTTY show: '<message>';cr.
TranscriptTTY default show: '<message>';cr.

Now, after migrating to 8.0, nothing is shown (not even the Instantiations copyright notice)

--Thomas
tstalzer
[|]
 
Posts: 65
Joined: Mon Oct 16, 2006 12:07 am
Location: Palma de Mallorca - Spain

Re: Write to Console in Headless app

Postby tstalzer » Wed Sep 30, 2009 5:26 am

ok - I found it myself

We accidently copied the nodialog.exe instead of the esvio.exe

Using the esvio.exe, everything is working now

Thanks

--Thomas
tstalzer
[|]
 
Posts: 65
Joined: Mon Oct 16, 2006 12:07 am
Location: Palma de Mallorca - Spain

Re: Write to Console in Headless app

Postby wembley » Wed Sep 30, 2009 5:37 am

Thomas -

I guess this points to the fact that it would be nice if there was just one Windows executable that could adapt itself to development time, GUI runtime, and headless runtime. We're actually partway there:

* 'nodialog.exe' and 'abt.exe -nodialog' are equivilent ways to start a GUI runtime image
* 'esvio.exe' and 'nodialog.exe -lcon' are equivilent ways to start a headless runtime image.

I'll create a feature request on your behalf :) to do this.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC

Re: Write to Console in Headless app

Postby tstalzer » Wed Sep 30, 2009 5:47 am

John

That's a good idea

--Thomas
tstalzer
[|]
 
Posts: 65
Joined: Mon Oct 16, 2006 12:07 am
Location: Palma de Mallorca - Spain


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest