From owner-freebsd-stable Wed May 8 1:15:47 2002 Delivered-To: freebsd-stable@freebsd.org Received: from HAL9000.wox.org (12-232-222-90.client.attbi.com [12.232.222.90]) by hub.freebsd.org (Postfix) with ESMTP id CE87037B409 for ; Wed, 8 May 2002 01:15:42 -0700 (PDT) Received: (from das@localhost) by HAL9000.wox.org (8.11.6/8.11.6) id g488FuS28461; Wed, 8 May 2002 01:15:56 -0700 (PDT) (envelope-from das) Date: Wed, 8 May 2002 01:15:56 -0700 From: David Schultz To: Dmitry Pryanishnikov Cc: freebsd-stable@FreeBSD.ORG Subject: Re: buffer size Message-ID: <20020508011556.A28420@HAL9000.wox.org> Mail-Followup-To: Dmitry Pryanishnikov , freebsd-stable@FreeBSD.ORG References: <20020501164552.GA34873@dru.dn.ua.lucky.freebsd.stable> <20020507131256.C98604-100000@atlantis.dp.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020507131256.C98604-100000@atlantis.dp.ua>; from dmitry@atlantis.dp.ua on Tue, May 07, 2002 at 01:18:22PM +0300 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 Thus spake Dmitry Pryanishnikov : > On Wed, 1 May 2002, Vladislav V. Zhuk wrote: > > > 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? > > > > I did't any changes. I use only 80x25 screen size in text mode > > (without X). Therefore, scmouse.c computes the cut_buffer_size > > incorrectly. Try to copy all screen and paste then. > > More specifically, it copies no more than 1024 characters (tested > both on 4.2-RELEASE and 4.4-RELEASE (fill one of your virtual > consoles with text, then select all screen, then switch to another > console, start "cat >file" and paste the text, then press ^D twice - > you'll see that file size will be no more than 1024). Yep, it's a termios limitation, not a syscons limitation. I suspect that there's a way to get syscons to stop sending data when the input queue is full, but it can't be that easy or someone who understands it would have fixed it by now. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message