Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!scramble.lm.com!news.math.psu.edu!chi-news.cic.net!portc01.blue.aol.com!news-res.gsl.net!news.gsl.net!news.mathworks.com!nntp.primenet.com!netcom.com!johnr
From: johnr@netcom.com (John Rickenbrode)
Subject: Re: [VW2.5/Solaris2.5] Output to console/xterm window?
In-Reply-To: nara@netcom.com's message of Fri, 16 Aug 1996 02:27:58 GMT
Message-ID: <umjohkb1c9y.fsf@netcom15.netcom.com>
Sender: johnr@netcom15.netcom.com
Organization: NETCOM On-line services
X-Newsreader: (ding) Gnus v0.98
References: <naraDw7LIn.94E@netcom.com>
Date: Fri, 16 Aug 1996 17:15:05 GMT
Lines: 27


In article <naraDw7LIn.94E@netcom.com> nara@netcom.com (Nara) writes:

>Could someone provide me with some info on how to output to the console 
>(ie. the xterm window that launched the VW process)?
>
>I'm using VW 2.5 on Solaris 2.5, and I'd like to send all my 
>"Transcipt show:"s to the console.
>



The following will redirect your transcript to the console under Solaris:

| str tc |
  tc := TextCollector new.
  str :=  ('/dev/console' asFilename) writeStream.
  tc expressInterestIn: #appendEntry 
     for: [str nextPutAll: tc nextEntry; flush]
     sendBack: #value.
  Transcript := tc.


>[nara@netcom.com]

John Rickenbrode
johnr@netcom.com
