Date: Sat, 15 May 1999 12:22:05 +0400 (MSD) From: Alex Kapranoff <root@kapran.bitmcnit.bryansk.su> To: "G. Adam Stanislav" <adam@whizkidtech.net> Cc: freebsd-newbies@FreeBSD.ORG Subject: Re: Newbie tip Message-ID: <Pine.BSF.4.05.9905151212580.1271-100000@kapran.bitmcnit.bryansk.su> In-Reply-To: <19990514184651.A16216@whizkidtech.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 14 May 1999, G. Adam Stanislav wrote: > It works by running a program called `blanks' which writes 100 blank lines, > thus overwriting the scrollback buffer. After calling blanks, cls just clears > the screen the same way clear does. I've just come up to one more solution ;) ----- kbdcontrol -h 1; kbdcontrol -h <NNN>; clear; exit ----- This one first sets scrollback buffer size to 1 line, then returns it into previous state (note, NNN must be your preferred scrollback buffer size. It cannot exceed SC_HISTORY_SIZE option in your kernel config. In fact NNN should be equal to it) thus totally wiping everything away. Then the usual way. > > If anyone has increased the size of their scrollback buffer, they can edit > the `cls' script and add the number of blank lines they want written. > Your cls script is much more portable, however ;) -- Alex Kapranoff, Voice: +7(0832)469245. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9905151212580.1271-100000>