From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1080 invoked by alias); 9 Nov 2011 16:31:27 -0000 Received: (qmail 1067 invoked by uid 22791); 9 Nov 2011 16:31:26 -0000 X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_00,BOTNET X-Spam-Check-By: sourceware.org Received: from mail31.mailforbusiness.com (HELO mail31.mailforbusiness.com) (64.106.208.204) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Nov 2011 16:31:04 +0000 Received: from mail31.mailforbusiness.com (localhost.simplicato.com [127.0.0.1]) by mail31.mailforbusiness.com (Postfix) with ESMTP id C1C8472BE34 for ; Wed, 9 Nov 2011 11:31:03 -0500 (EST) Received: from [10.10.50.50] (67-198-47-100.static.grandenetworks.net [67.198.47.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jeremy@bopp.net) by mail31.mailforbusiness.com (Postfix) with ESMTPSA id 8B93A72BE80 for ; Wed, 9 Nov 2011 11:31:03 -0500 (EST) Message-ID: <4EBAAAC6.3040004@bopp.net> Date: Wed, 09 Nov 2011 16:31:00 -0000 From: Jeremy Bopp User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Copy, paste and deleting characters in the openssh screen. References: <32811323.post@talk.nabble.com> In-Reply-To: <32811323.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2011-11/txt/msg00147.txt.bz2 On 11/9/2011 08:38, gabier wrote: > > Hi, > I am experiencing daily frustration because I do not know how to get the > following features to my fingertips while controlling my Freenas/FreeBSD > server from my openssh console on a remote Windows computer. > 1) copy from windows document or browser and paste in the openssh console > 2) copy from the openssh console and paste either on another line of the > console or on a windows document While you can get this to work with the default Cygwin terminal (cmd.exe), you would be better off installing the mintty package and using that for your terminal instead. You can configure it to behave like a typical xterm with respect to copying and pasting, so you may find that much more familiar. To copy and paste from a regular Windows program, highlight the text and press CRTL-C to copy as usual. Then go to your mintty window and paste using the method you configured for it in its configuration dialog. I think pressing SHIFT-INS should work by default, but there are other options available, including middle clicking (not the default IIRC). To copy and paste from the mintty window, highlight the text and then copy using the method you configured for mintty. I have my mintty configured to copy automatically when text is highlighted, but that's not the default as I recall. Once the text is copied, paste into a Windows program as usual with CRTL-V or paste back into the mintty window as discussed previously. > 3) correct my openssh commands by deleting characters with the "backwards" > stroke. Sometimes it works, sometimes not, it seems to depend on the type of > login! The local user (Cygwin) seems to work, the root user on the freebsd > server seems also to work, but another user on the freebsd server does not > work : if I hit the "backward stroke" it prints a triangle (meaning I > suppose unknown character) and there is no way to correct this but to send > the wrong command and retype the whole command. With long commands it can be > very frustrating. This may get corrected automatically by using mintty as your terminal, but it's really not a Cygwin-specific issue. I've had similar problems in the past and was able to work around them by pressing either CTRL-H or CTRL-BACKSPACE. My vague understanding of the problem is that the terminal sends a particular character in response to the backspace key, which is configurable in many terminals. Mintty is one such terminal, but the cmd terminal is not. Without the ability to change the character sent by the terminal program, you would need to be able to configure the remote applications to do the right thing with whatever character *is* sent, but that can be a tall order due to the different ways you may have to configure each application. As I said, that is only my vague understanding of the problem, so it could be subtly or glaringly inaccurate. In any case, however, you will likely avoid the problem by using mintty. :-) -Jeremy -- 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