X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,FB_WORD1_END_DOLLAR,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject:  Re: /dev/conout
Date:  Fri, 18 Dec 2009 11:29:55 -0700
Lines: 43
Message-ID: <hgghn4$6cc$1@ger.gmane.org>
References:  <26769438.post@talk.nabble.com> <4B2557EC.5070506@gmail.com> <26770209.post@talk.nabble.com> <4B257717.4070503@gmail.com> <hg45o8$rvf$1@ger.gmane.org> <26847257.post@talk.nabble.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0pre Thunderbird/3.0
In-Reply-To: <26847257.post@talk.nabble.com>
X-Stationery: 0.4.10
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 12/18/2009 11:00 AM, Marc Girod wrote:
> defaria wrote:
>> the problem is that cleartool is written for Windows thus uses 
>> /dev/conout
> I can see /dev/conout, but what can I do with it?
I don't know. I've never tried to do anything with it.
> I found one hit in the docs:
> http://www.cygwin.com/1.7/cygwin-ug-net/using-specialnames.html
As I understand it /dev/conout is the same as the Windows CONOUT$ 
device. As such it's Windows stdout, as per se. As a Windows stdout, it 
doesn't know anything about Cygwin's POSIX implementation of ptys. So, 
in a Cygwin Windows Window (i.e. the same window that you get when you 
do a cmd window in Windows) output to /dev/conout should show up just 
find in Cygwin's stdout. Therefore a cleartool ci <file> should prompt 
you for a checkin comment.

However, if you used ptys then the output to /dev/conout, and thus to 
Cygwin's stdout, will not show up because, again, Windows CONOUT$ does 
not understand ptys. How/Why do you use ptys in Cygwin? Various ways. 
For example, if you use xterm or rxvt, you'll be using ptys. This sucks 
because I like rxvt much better than the cruddy Windows window and rxvt 
doesn't incur the overhead of an X server - it can work without it.

How else do you start using ptys? Well if you ssh to a machine, again, 
you'll be using ptys.

So I've always just used something like "cleartool ci -c 'my comment' 
<file>" or "cleartool ci -nc <file>" and if I ever do a cleartool 
command and it seems to hang the first thing I think of is "Oh I bet 
it's that pty thing".

There is another terminal emulator software called "terminal" I think, 
that runs on Windows and interacts well with Cygwin. It also allows you 
to do gnome-terminal like things like transparent backgrounds. IIRC it 
seems to run a cmd window in the background and handles this issue with 
cleartool (and, BTW cqperl's debugger) properly - well sorta properly.

I'm sorry I don't have a better reference for that terminal emulator. I 
used it at my last client. I have IM'ed a friend to ask him where he 
found it. I'll report back if I get a good reference.
-- 
Andrew DeFaria <http://defaria.com>
Attempt to get a new car for your spouse-it'll be a great trade!


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

