From owner-freebsd-stable Tue Apr 30 21:15:52 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by hub.freebsd.org (Postfix) with SMTP id EAEC337B405 for ; Tue, 30 Apr 2002 21:15:46 -0700 (PDT) Received: (qmail 18626 invoked by uid 0); 1 May 2002 04:15:45 -0000 Received: from p50910814.dip0.t-ipconnect.de (HELO mail.gsinet.sittig.org) (80.145.8.20) by mail.gmx.net (mp001-rz3) with SMTP; 1 May 2002 04:15:45 -0000 Received: (qmail 86632 invoked from network); 30 Apr 2002 19:59:40 -0000 Received: from shell.gsinet.sittig.org (192.168.11.153) by mail.gsinet.sittig.org with SMTP; 30 Apr 2002 19:59:40 -0000 Received: (from sittig@localhost) by shell.gsinet.sittig.org (8.11.3/8.11.3) id g3UJxWY86619 for freebsd-stable@FreeBSD.ORG; Tue, 30 Apr 2002 21:59:32 +0200 (CEST) (envelope-from sittig) Date: Tue, 30 Apr 2002 21:59:32 +0200 From: Gerhard Sittig To: freebsd-stable@FreeBSD.ORG Subject: Re: buffer size Message-ID: <20020430215932.U1494@shell.gsinet.sittig.org> Mail-Followup-To: freebsd-stable@FreeBSD.ORG References: <20020430114023.GA76954@dru.dn.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020430114023.GA76954@dru.dn.ua>; from admin@dru.dn.ua on Tue, Apr 30, 2002 at 02:40:23PM +0300 Organization: System Defenestrators Inc. Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Apr 30, 2002 at 14:40 +0300, Vladislav V. Zhuk wrote: > > How to increase buffer size for cut and paste functions if the > mouse pointer is enabled in the virtual console via vidcontrol(1) ?? > > I need to copy entire screen. src/sys/dev/syscons/scmouse.c dynamically allocates the cut_buffer array and computes the cut_buffer_size from the screen coordinates. So the buffer should be able to hold the whole screen's content. Do you change the screen's dimension after using the clipboard? BTW you don't mention your system's `uname -sr` output. > 2-nd question: after paste empty lines are lost. For example, I copy > next area of screen: > -------------------------- > line 1 > > line 3 > > line 5 > -------------------------- > after paste I get: > -------------------------- > line 1 > line 3 > line 5 > -------------------------- > > It's WRONG. How to fix this?? Have a look at PR kern/21156: ("[PATCH] inconsistency in scmouse vs xterm behaviour"). The "squeezing empty lines" you experienced is mentioned there and sobomax already fixed two of the three items last autumn (although I cannot tell if it has been MFCed since I run the local patch here). BTW do I still feel that the _assumption_ "when there are characters at the end of one screen line and at the start of the next screen line it's only "optically" wrapped and there was no line feed in between" is more appropriate than the current behaviour. So I still suggest the one line patch from my last followup (from 9 Dec 2001) for consideration. The only "clean" solution to this - as discusses in the PR - was to keep track of how the screen content was drawn and probably is too much to ask for a console driver. virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76 Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message