From owner-freebsd-questions@FreeBSD.ORG Mon Aug 16 14:44:29 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 664CB16A4CE for ; Mon, 16 Aug 2004 14:44:29 +0000 (GMT) Received: from gblinux.omniresources.com (host-69-48-112-132.mil.choiceone.net [69.48.112.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 640E843D55 for ; Mon, 16 Aug 2004 14:44:28 +0000 (GMT) (envelope-from dpoland@omniresources.com) Received: from 5x2822.omniresources.com (5x2822.omniresources.com [192.168.254.149])i7GEM0P7017815; Mon, 16 Aug 2004 09:22:00 -0500 (CDT) (envelope-from dpoland@atwdev.omniresources.com) Received: from 5x2822.omniresources.com (localhost [127.0.0.1]) i7GEM0Ik085702; Mon, 16 Aug 2004 09:22:00 -0500 (CDT) (envelope-from dpoland@5x2822.omniresources.com) Received: (from dpoland@localhost)i7GELxOD085688; Mon, 16 Aug 2004 09:21:59 -0500 (CDT) (envelope-from dpoland) Date: Mon, 16 Aug 2004 09:21:59 -0500 From: doug@polands.org To: Matthew Seaman , Mike , freebsd-questions Message-ID: <20040816142132.GD85541@omniresources.com> References: <4120BDA1.7030700@pacbell.net> <20040816140930.GA84216@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040816140930.GA84216@happy-idiot-talk.infracaninophile.co.uk> User-Agent: Mutt/1.4.2.1i Subject: Re: How to increase scrollback for FreeBSD-4.10? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2004 14:44:29 -0000 On Mon, Aug 16, 2004 at 03:09:30PM +0100, Matthew Seaman wrote: > On Mon, Aug 16, 2004 at 06:58:57AM -0700, Mike wrote: > > > When I'm on the 4.10 box the scrollback is about 200 lines. If possible > > I'd like to set the scroll back to 600 lines or so (at least). > > > > Question: How do I increase the scrollback on 4.10? > > That depends on the console program you're using. For an xterm(1), > the following in ~/.Xdefaults will give you 8k scrollback lines: > > xterm*saveLines: 8192 > > (Remember to run '/usr/X11R6/bin/xrdb -merge ${HOME}/.Xdefaults' out > of .xsession or .xinit so that gets set every time you log in) > > For the system console, you'll need to play with the syscons(4) > history size. Modify your kernel configuration to set > > options SC_HISTORY_SIZE=N > > where N is the number of lines of scroll back you want (default 100). > Then build and install a new kernel in the usual way: > xterm like programs allow the -sl switch lines. I've had problems with numbers approaching 32767 but have never nailed down exactly how many lines I can save. I safely use -sl 30000 for xterm, rxvt, aterm, and gnome-terminal. This would be an excellent topic to include in the fortune file: freebsd-tips -- Regards, Doug