X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:content-type; q=dns; s=default; b=jwe2C+i
	25c+RliJ8SH4tUXfJphZZNAxQCR6LA+lwruDXzJ3zEBIiuI+qeSwxqF7lhdsPn9c
	jX7wM4YZcXM473f5C7XHh0Gh5g0W0kP6iUABhai5SMGuc+MFJDY6n3BUiANMbMwZ
	ckaG0bM5NGx7QaLyF3Tf2UeQO0TegFEW8xMw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:content-type; s=default; bh=HNN4R0+wlD7OL
	wN4cnlw+i1dUtQ=; b=Duu49OSJ47xSPx/K0hvYzUhDPylVByKzYUsdV2gZEcI4c
	l7YO364tnZgR5L7IcVQu8crdyn3LY626OqLNFwtd4F3BZCrXJcHMhdtsLbemUzei
	kMzklC9rwsK1mNS/KhpHscOL3OGenIYHswTjVxk9QL/alGnt58tDduDZHXXJto=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=yes!
X-HELO: mail-qk1-f193.google.com
MIME-Version: 1.0
References: <CAGqcPWC7T_FHmS1+nRgAA56fUoWNOk1LuCqkOqb4FG=Zgkx5Qg@mail.gmail.com>
In-Reply-To: <CAGqcPWC7T_FHmS1+nRgAA56fUoWNOk1LuCqkOqb4FG=Zgkx5Qg@mail.gmail.com>
From: Alexander Voropay <alec@sensi.org>
Date: Tue, 7 Jan 2020 00:59:30 +0300
Message-ID: <CAGqcPWDs7Vteed_a5NwgqTt_Fb4sLeUWm4Q7eU1LUuTdphdO3w@mail.gmail.com>
Subject: Re: cygwin mingw crosscompiler / readline bug
To: cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes

Auto-answer..he-he...

> I'm trying to compile a standalone Windows-32 console application
> using 'readline' with cygwin's  'i686-w64-mingw32-gcc' crosscompiler.
>
> I have a bug: readline repeates every input line to STDOUT on
> Windows-32 application (running from the CMD.EXE, outside a Cygwin)

'readline' library requires terminal-specific functions like
tputs()/tgetnum() e.t.c.
and should be linked with old-good 'libtermcap' (not provides with Cygwin now)
or with more recent curses library i.e. 'ncurses' or 'pdcurses'.

On the Cygwin's 'i686-w64-mingw32-gcc' crosscompiler 'libreadline' depends
on the 'ncurses' which has special support for Win32 console 'terminal'.
To enable Win32 console support set a TERM environment:

set TERM=#win32console

(yes! with # character)

--
-=AV=-

--
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

