X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4CE1B698.9080802@gmail.com> Date: Mon, 15 Nov 2010 14:39:20 -0800 From: Daniel Colascione User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [mintty 0.9.2] cmd.exe history doesn't work properly References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 11/15/2010 1:39 PM, Patches Houlihan wrote: > Browsing through the command history in cygwin's cmd.exe access to the > Windows shell doesn't work properly in mintty. Instead of showing > previous commands, the up and down keys just move a cursor on the > screen. Using up/down works fine with bash on mintty and cmd.exe > works fine in the standard Windows console Cygwin terminal. It's a well-known problem: Cygwin pseudo-terminals look like pipes to Windows, so cmd thinks it's being run non-interactively. You have two solutions: 1) Use the "conin wrapper" around cmd to give the program a real terminal, or 2) Better yet, use "rlwrap cmd" so you get nice readline-based line editing and persistent history with cmd. (I still need to get around to packaging a newer version of rlwrap, but the current one should work fine for this purpose.) -- 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