From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96277 invoked by alias); 6 Jan 2020 21:59:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 96269 invoked by uid 89); 6 Jan 2020 21:59:14 -0000 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 Received: from mail-qk1-f193.google.com (HELO mail-qk1-f193.google.com) (209.85.222.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 06 Jan 2020 21:59:10 +0000 Received: by mail-qk1-f193.google.com with SMTP id x129so40891873qke.8 for ; Mon, 06 Jan 2020 13:59:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Voropay Date: Mon, 06 Jan 2020 21:59:00 -0000 Message-ID: Subject: Re: cygwin mingw crosscompiler / readline bug To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00058.txt.bz2 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