1 |
On 17.02.2017 04:11, Harry Putnam wrote: |
2 |
> In make menuconfig, under: |
3 |
> Device Drivers → Graphics support → Console display driver support |
4 |
> (700) Scrollback Buffer Size (in KB) |
5 |
> |
6 |
> I think the default was 64 but I like a big scrollback buffer. |
7 |
> |
8 |
> As you see I set 700 but really didn't have much of an idea what that |
9 |
> would be in lines. |
10 |
> |
11 |
> Can any one offer a close guestimate what 700 kb would be in lines. |
12 |
> |
13 |
> That is pretty close to 1 mb isn't it?... but still what is that in |
14 |
> lines? I'm guessing 1 MB might be around 10,000 lines. Is that even |
15 |
> roughly close... if so I probably should have went higher. |
16 |
> |
17 |
> |
18 |
|
19 |
Your estimate is probably pretty good: I think 'the norm line' used to |
20 |
be 80 chars. Now, that's not really the case anymore but you won't |
21 |
probably get an average line length over 80-100 chars (except if you |
22 |
only compile/emerge on the terminal). There's also a variable '$COLUMNS' |
23 |
which tells you how many columns your terminal has. |
24 |
1 char usually needs 1 Byte (ascii/utf8), so you can store about |
25 |
1M/100=10k lines in 1MB. Colors add some Bytes (about 4-8 Bytes per |
26 |
color change), but I guess, the average should not exceed 100 chars/line. |
27 |
|
28 |
But why don't you use tmux or the like? There you also have a scrollback |
29 |
buffer, but you can also search and copy there, you have a terminal |
30 |
window manager (multiplexed) with different possible layouts and |
31 |
detached sessions, means that e.g. when you log in remotely and lose the |
32 |
connection, you just relogin and type 'tmux attach' and you're back. |