lkml.org 
[lkml]   [1996]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: scrollback
On 26 Oct 1996 PC-Ace@iactiva.cl wrote:

> >Better yet, why not have it saved in a file?
> >/var/run/scroolback/tty1, tty2, and so on...
>
> NO! I mean, I'm not even sure it can be done, but if it could, wouldnt
> it be HORRIBLY slow?!? Imagine the kernel doing a read/write EVERY time
> you change your VC. This would certainly be a pain in the ass,
> especially when you do it a lot (like I do). And even worse with slow
> disks/controllers.

The kernel already saves the *visible* screen when switching VC's, the
buffer (AFAIK) is visible rows*visible columns in size. Somebody who
wants this feature (not me, if I want large scrollback I use xterm) could
increase the buffer size. As for files, add /proc/vcs/... to access the
entire buffer, probably root only access.



\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.054 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site