From owner-freebsd-stable Tue May 7 3:18:39 2002 Delivered-To: freebsd-stable@freebsd.org Received: from atlantis.dp.ua (atlantis.dp.ua [193.108.46.1]) by hub.freebsd.org (Postfix) with ESMTP id 0BE3C37B404 for ; Tue, 7 May 2002 03:18:29 -0700 (PDT) Received: from localhost (dmitry@localhost) by atlantis.dp.ua (8.11.1/8.11.1) with ESMTP id g47AIMG28230 for ; Tue, 7 May 2002 13:18:23 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Tue, 7 May 2002 13:18:22 +0300 (EEST) From: Dmitry Pryanishnikov To: freebsd-stable@freebsd.org Subject: Re: buffer size In-Reply-To: <20020501164552.GA34873@dru.dn.ua.lucky.freebsd.stable> Message-ID: <20020507131256.C98604-100000@atlantis.dp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Hello! 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). Sincerely, Dmitry Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message