www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/09/12:17:29

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <000f01c04a6f$ac297fc0$0c5e460a@empros.com>
From: "Geoff Hart" <ghart AT siemens-psc DOT com>
To: <cygwin AT sources DOT redhat DOT com>
Subject: cleartool & CYGWIN=tty
Date: Thu, 9 Nov 2000 11:08:25 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

Hello,

Is there a way to fool a Windows app (cleartool) into thinking
STDIN is a DOS console?  I believe cleartool calls "isatty" to
determine whether to show a prompt or not ("cleartool> ").

I was hoping I could pipe in some program which would create a
pseudo DOS tty for STDOUT, while it simply echoed whatever it
recieved on STDIN.  (like: "bash$ fake_console | cleartool")

I know I can achieve this by starting bash, with CYGWIN=notty in
a regular DOS Command Propmt window, but I like to use TTY support
*PLUS* I like to use RXVT.  Also, cleartool has a "-e" option which
hints at what I want, but it doesn't have any apparent effect

Example:

bash$ cleartool
q
bash$ cleartool -e
q
bash$ cleartool <con
      0 [main] bash 1069 fhandler_base::dup: dup(con) failed, handle 17,
Win32 error 87
bash: con: Invalid argument
bash$ cleartool </dev/tty
q
bash$ cleartool <con:
      0 [main] bash 1071 fhandler_base::dup: dup(con:) failed, handle 17,
Win32 error 87
bash: con:: Invalid argument

thanks,
Geoff

p.s. please email me at ghart AT siemens-psc DOT com and I'll post a summary.



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019