X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com From: Andrew DeFaria Subject: Re: /dev/conout Date: Fri, 18 Dec 2009 11:29:55 -0700 Lines: 43 Message-ID: References: <26769438 DOT post AT talk DOT nabble DOT com> <4B2557EC DOT 5070506 AT gmail DOT com> <26770209 DOT post AT talk DOT nabble DOT com> <4B257717 DOT 4070503 AT gmail DOT com> <26847257 DOT post AT talk DOT nabble DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 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' " or "cleartool ci -nc " 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 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