X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4D4989FA.8050402@bopp.net> Date: Wed, 02 Feb 2011 10:44:42 -0600 From: Jeremy Bopp User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: 1.7.7: window cuts off output / saving output References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 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 2/2/2011 10:13 AM, Rachel Trent wrote: > I have a seemingly simple problem that I either haven't found the > answer to or I didn't understand the answer when I saw it. I presume > I'm not describing it with the correct terminology... > > Short version: > In layman's terms, the Cygwin window cuts off at the top, and I'd like > to know if the output that's been cut off is forever lost or if I > might be able to save it to a file or view it some other way. The exact solution for increasing your scrollback buffer is dependent upon the terminal you're using. If you're using mintty, you can find the option in the Options dialog within the Window section. If you're using the Windows cmd terminal, and it sounds like you are, you can find the option you need in the Properties dialog on the Layout tab. Change the height of the screen buffer to whatever you need. All of that is just a quick hack though because you could always have output that is longer than your scrollback buffer. What follows is not Cygwin-specific, but you don't seem to know about this stuff yet. If you need to be sure to always have your command's complete output available, you need to redirect its output to a file. e.g.) create_output --lots-of-it > out.log If you would like to see the output as it goes by and still save it all, pipe your command's output to the tee program and give tee the path to a file as an argument into which the output will also be recorded. e.g.) create_output --lots-of-it | tee out.log Now you can review out.log at your leisure using a text editor or a simple pager. You can also just send the output to a nice pager such as less if you don't mind interacting with the pager a bit in order to let your command complete. e.g.) create_output --lots-of-it | less -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