X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <496A7038.402@gmail.com> Date: Sun, 11 Jan 2009 22:18:32 +0000 From: Andy Koppe User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: First Pass at mintty documentation References: <496A5EDE DOT 9010204 AT veritech DOT com> In-Reply-To: <496A5EDE.9010204@veritech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 Lee D.Rothstein wrote: > Hi, I've taken a first pass at distilling my experience with > 'mintty' and the [ahem] discussion, here, about it into a text > file (see attachment mintty.{h}) Thanks, that's a nice surprise! > Speed It's quite funny, I didn't realise that until people here pointed it out, probably because I didn't have to do anything to achieve it. :) > > Best conformance to my personal expectation of what various > directional keys (, , <->>, <<->, etc.) should do! > (However, still bummed that -<->> & -<<-> do not > move, respectively forward and back a word on the command > line!) These two lines in .inputrc should do the trick: "\e[1;5D": backward-word "\e[1;5C": forward-word And here's my favourite bash feature, mapped to Ctrl-Up/Down: "\e[1;5A": history-search-backward "\e[1;5B": history-search-forward > * Futures expectation: My number one goal would be for it to > replace the Cygwin console for everything, although I > understand there are great difficulties with that goal. Hmm, yep, unfortunately the only path I can see towards that goal is to take Console2's approach of capturing a Windows console, and to try and make the cygwin terminal running inside it more standards-compliant, but that would still leave the slowness of the console and the lag caused by capturing its contents. Perhaps it would be possible to override and reimplement the Win32 console functions as listed at http://msdn.microsoft.com/en-us/library/ms682073(VS.85).aspx ? Do DOS software interrupts still work too? It would certainly be a huge amount of work though, which would include having to reimplement the console's ANSI emulation. > Because of the nature of various "discussion" elements in wading > through this stuff, I am referring to my documentation "project" as: > *Diuretics*! *grin* > @@ What "alternate screen"? @@ Good question. It's vt100 lingo for a second logical screen that wholescreen apps such as editors normally use, often through the (n)curses library. (I'm taking "wholescreen" to mean an app controlling the whole terminal screen, as opposed to the terminal window being in fullscreen mode.) > = Is there an alternate screen toggle in 'mintty' as there is > in 'xterm'? I didn't know xterm actually had a UI for this. Do people find this useful? > = How do you invoke it? You shouldn't need to really. Apps such as 'less' or 'vi' switch to it using the releavant vt100 incantation. > [about mousewheel scrolling in less] > the feature doesn't work in Vista when the > scrollbar is shown. Looks like the inactive scrollbar is > swallowing the mousewheel events. Actually this seems to be an issue with the trackpad driver on my laptop. It's works fine with a bog-standard USB mouse on my desktop. Thanks again, Andy -- 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/