delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/29/02:54:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: "Mikael" <mindcooler AT gmail DOT com>
Subject: Re: Program launched under rxvt asks for user input in original prompt
Date: Tue, 29 Mar 2005 09:53:45 +0200
Lines: 49
Message-ID: <d2b1fr$fjk$1@sea.gmane.org>
References: <d2arpj$2ct$1 AT sea DOT gmane DOT org> <4248F85D DOT 9F88A6D4 AT dessent DOT net>
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: 180.184.204.213.sol.worldonline.se
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-IsSubscribed: yes

"Brian Dessent" wrote:
> Mikael wrote:
>
>> Hello, a few days ago I got some help on this list to get rxvt (and also
>> with emacs' shell mode) up and running and I love it! But today when 
>> trying
>> out MySQL 5.0.3 beta that was just released, I noticed an annoying thing:
>> I tried to start mysql command line shell by issuing (under rxvt):
>> $ mysql -u root -p
>> Now I am supposed to see the text "Enter password: " but nothing 
>> happened.
>> Then I noticed that the text had appeared in the original prompt from 
>> where
>> rxvt was launched. The command line utility mysqladmin, which I use to 
>> shut
>> down the database, also behaves in this way. And trying to type the 
>> password
>> in the original prompt (which is echoed in clear-text) does not work by 
>> the
>> way.
>> Have I encountered a bug here?
>
> It's not a bug.  When you use rxvt/xterm Cygwin has to emulate a pty
> (pseudoterminal) which is a unix concept that does not exist natively in
> Windows.  Native windows apps such as the mysql binaries that you're
> using often get confused by this, becase they only know about a Windows
> console, which is probably why you saw the text on the original cmd.exe
> prompt.
>
> There is really no straightforward way to solve this.  You could compile
> the mysql client binaries under Cygwin (I don't think the server works
> yet...), or you could supply the password in ~/.my.cnf, or stick to
> running them only in cmd.exe.
>
> Brian
>

Thanks Brian, I guess I'll just launch these programs from an ordinary 
command line shell then.
As for building the client-only side of MySQL for Cygwin, that still doesn't 
work ootb because term.c in the mysql source insists on including both 
termcap.h and (n?)curses.h, and, as you know, those are mutually exclusive 
(at least on cygwin). When I have the mysql client successfully running 
under cygwin I will celebrate.

/ M 




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

- Raw text -


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