Re: [gentoo-user] Short history in terminal (without X)

2007-02-16 Thread Mick
On Thursday 15 February 2007 17:01, Willie Wong wrote:
> On Thu, Feb 15, 2007 at 05:11:36PM +0100, Penguin Lover Roman Naumann 
squawked:
> > How can I make the history buffer larger, or - if possible - set it
> >  infinitely large. (Just as the "Konsole" of KDE.)
>
> This might help:
>   http://linux.inet.hr/soft_scrollback_for_the_linux_vga_console.html

For some reason this won't work on my laptop.  Shift+Pg up won't scroll 
whatsoever.  As if there's no buffer at all.  :(
-- 
Regards,
Mick


pgpoNKBGR0H0l.pgp
Description: PGP signature


Re: [gentoo-user] Short history in terminal (without X)

2007-02-16 Thread Dan Farrell
On Thu, 15 Feb 2007 19:29:54 +0100
Jakob Buchgraber <[EMAIL PROTECTED]> wrote:

> > does someone know, how to increase the "history-buffer's size" of
> > the terminal? 

> > How can I make the history buffer larger, or - if possible - set it
> >  infinitely large. (Just as the "Konsole" of KDE.)
> To make it "infinitely" large you can set the variable HISTSIZE to
> some huge value like
> export HISTSIZE=1
Isn't that for bash's command history?  I'm pretty sure it is.  What
you want, Roman, is a kernel parameter:
Device Drivers---> 
Graphics support---> 
Console display driver support--->
--- VGA text console
[ ]   Enable Scrollback Buffer in System RAM
(64)Scrollback Buffer Size (in KB) (NEW)
As the help says, "Each 64KB will give you approximately 16 80x25
screenfuls of scrollback buffer."  This is the buffer accessed by
pressing Shift+PgUp at the console.  
> > Another inconvenient thing is that the buffer seems to "forget"
> > everything except the last screen of text, if I switch to another
> > terminal. (alt + F2 for instance).
Each console probably has its own buffer, doesn't it?  Just like
different terminals or different xterm windows?  



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Short history in terminal (without X)

2007-02-16 Thread Alan McKinnon
On Thursday 15 February 2007, Roman Naumann wrote:
> Hi,
>
> does someone know, how to increase the "history-buffer's size" of the
> terminal? (and I mean the pure terminal, without an X-Server)
> I mean, if I use some commands producing plenty of output, I cannot
> scroll to the beginning of the text quite often, because the history
> buffer is to small.

Sounds like you want to increase the kernel's scrollback buffer size for 
the terminal.

In make menuconfig, it's Device Drivers -> Graphics Support -> 
Scrollback buffer size

> Another inconvenient thing is that the buffer seems to "forget"
> everything except the last screen of text, if I switch to another
> terminal. (alt + F2 for instance).

Sorry, can't help with that one. If it's any consolation, I've also been 
looking for a solution to that for ages

alan


-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Short history in terminal (without X)

2007-02-15 Thread Jakob Buchgraber

FuziOK wrote:

Jakob Buchgraber wrote:

Roman Naumann wrote:

Hi,

does someone know, how to increase the "history-buffer's size" of the
terminal? (and I mean the pure terminal, without an X-Server)
I mean, if I use some commands producing plenty of output, I cannot 
scroll to

the beginning of the text quite often, because the history buffer is to
small.

Another inconvenient thing is that the buffer seems to "forget" 
everything
except the last screen of text, if I switch to another terminal. 
(alt + F2

for instance).

How can I make the history buffer larger, or - if possible - set it
 infinitely large. (Just as the "Konsole" of KDE.)

Thanks,

Roman Naumann.
  
To make it "infinitely" large you can set the variable HISTSIZE to 
some huge value like

export HISTSIZE=1

You could try setting the history to infinitely in Konsole and then do
echo $HISTSIZE

Cheers,
Jay



HISTSIZE is used in shell as the number of commands to save in a 
history list,

but cannot increase the "history-buffer's size" of the terminal.
Yes. I was just reading too fast. I noticed this myself after already 
having sent the e-mail.

I am sorry.

Cheers,
Jay
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Short history in terminal (without X)

2007-02-15 Thread FuziOK

Jakob Buchgraber wrote:

Roman Naumann wrote:

Hi,

does someone know, how to increase the "history-buffer's size" of the
terminal? (and I mean the pure terminal, without an X-Server)
I mean, if I use some commands producing plenty of output, I cannot 
scroll to

the beginning of the text quite often, because the history buffer is to
small.

Another inconvenient thing is that the buffer seems to "forget" 
everything
except the last screen of text, if I switch to another terminal. (alt 
+ F2

for instance).

How can I make the history buffer larger, or - if possible - set it
 infinitely large. (Just as the "Konsole" of KDE.)

Thanks,

Roman Naumann.
  
To make it "infinitely" large you can set the variable HISTSIZE to 
some huge value like

export HISTSIZE=1

You could try setting the history to infinitely in Konsole and then do
echo $HISTSIZE

Cheers,
Jay



HISTSIZE is used in shell as the number of commands to save in a history 
list,

but cannot increase the "history-buffer's size" of the terminal.
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Short history in terminal (without X)

2007-02-15 Thread Jakob Buchgraber

Roman Naumann wrote:

Hi,

does someone know, how to increase the "history-buffer's size" of the
terminal? (and I mean the pure terminal, without an X-Server)
I mean, if I use some commands producing plenty of output, I cannot scroll to
the beginning of the text quite often, because the history buffer is to
small.

Another inconvenient thing is that the buffer seems to "forget" everything
except the last screen of text, if I switch to another terminal. (alt + F2
for instance).

How can I make the history buffer larger, or - if possible - set it
 infinitely large. (Just as the "Konsole" of KDE.)

Thanks,

Roman Naumann.
  
To make it "infinitely" large you can set the variable HISTSIZE to some 
huge value like

export HISTSIZE=1

You could try setting the history to infinitely in Konsole and then do
echo $HISTSIZE

Cheers,
Jay
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Short history in terminal (without X)

2007-02-15 Thread FuziOK
Roman Naumann 写道:
> Hi,
>
> does someone know, how to increase the "history-buffer's size" of the
> terminal? (and I mean the pure terminal, without an X-Server)
> I mean, if I use some commands producing plenty of output, I cannot scroll to
> the beginning of the text quite often, because the history buffer is to
> small.
>
> Another inconvenient thing is that the buffer seems to "forget" everything
> except the last screen of text, if I switch to another terminal. (alt + F2
> for instance).
>
> How can I make the history buffer larger, or - if possible - set it
>  infinitely large. (Just as the "Konsole" of KDE.)
>
> Thanks,
>
> Roman Naumann.
>   
Try screen.
http://www.gnu.org/software/screen

But I like to use tee:
command 2>&1 | tee output

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Short history in terminal (without X)

2007-02-15 Thread Dan Cowsill

On 2/15/07, Roman Naumann <[EMAIL PROTECTED]> wrote:

Hi,

does someone know, how to increase the "history-buffer's size" of the
terminal? (and I mean the pure terminal, without an X-Server)
I mean, if I use some commands producing plenty of output, I cannot scroll to
the beginning of the text quite often, because the history buffer is to
small.

Another inconvenient thing is that the buffer seems to "forget" everything
except the last screen of text, if I switch to another terminal. (alt + F2
for instance).

How can I make the history buffer larger, or - if possible - set it
 infinitely large. (Just as the "Konsole" of KDE.)

Thanks,

Roman Naumann.




I don't know about making it "infinitely" large, but you can have a
scrollable console history with vesafb (probably with other
framebuffers aswell, but I've only had experience with vesafb).  Check
out /usr/src/linux/Documentation/fb/vesafb.txt for more information.

You'll have to compile your kernel with vesafb, and run the vga kernel
argument to set the size of the console.  I believe there is some sort
of kernel option (that you should be able to find with a minimum of
searching) that sets the size of the buffer in bytes...

From there, it is as easy as pressing shift-pgup and shift-pgdown to
scroll through your buffer.

Hope this helps.
--
-·=»Ðŧħ«=·-


[gentoo-user] Short history in terminal (without X)

2007-02-15 Thread Roman Naumann
Hi,

does someone know, how to increase the "history-buffer's size" of the
terminal? (and I mean the pure terminal, without an X-Server)
I mean, if I use some commands producing plenty of output, I cannot scroll to
the beginning of the text quite often, because the history buffer is to
small.

Another inconvenient thing is that the buffer seems to "forget" everything
except the last screen of text, if I switch to another terminal. (alt + F2
for instance).

How can I make the history buffer larger, or - if possible - set it
 infinitely large. (Just as the "Konsole" of KDE.)

Thanks,

Roman Naumann.


pgpbMK8jMfPxJ.pgp
Description: PGP signature