How to set hist buf size in perldb?

Discussion in 'Perl Misc' started by bill, Feb 26, 2004.

  1. bill

    bill Guest

    How can I set the number of lines kept in perldb's history buffer?
    As far as I can tell, my perldb uses Term::ReadLine::perl, but I
    have not been able to figure out how to change the size of its
    history buffer.

    Thanks!

    bill
     
    bill, Feb 26, 2004
    #1
    1. Advertising

  2. bill

    kj Guest

    In <c1l8pc$amd$> bill <no_email@please_post.com> writes:

    >How can I set the number of lines kept in perldb's history buffer?
    >As far as I can tell, my perldb uses Term::ReadLine::perl, but I
    >have not been able to figure out how to change the size of its
    >history buffer.


    I'm sure there are more civilized ways of doing this, but if you
    want to *increase* the buffer size from its default of 100, try
    something like

    $readline::rl_MaxHistorySize = 1000

    at the DB prompt.

    One can decrease the buffer size similarly, but unless the history
    for the session you want to affect is shorter than the new buffer
    size, it can be messy. See Term/ReadLine/readline.pm.
     
    kj, Feb 26, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roberto Gallo

    Shift - byte[] buf shift

    Roberto Gallo, Jan 27, 2004, in forum: Java
    Replies:
    3
    Views:
    2,071
    Thomas Schodt
    Jan 27, 2004
  2. Red Orchid
    Replies:
    2
    Views:
    363
    Mike Schilling
    Sep 26, 2005
  3. Replies:
    33
    Views:
    881
  4. Nick Matzke

    hist without plotting

    Nick Matzke, Feb 16, 2009, in forum: Python
    Replies:
    1
    Views:
    690
    Peter Otten
    Feb 16, 2009
  5. Nick Matzke

    Re: hist without plotting

    Nick Matzke, Feb 16, 2009, in forum: Python
    Replies:
    0
    Views:
    625
    Nick Matzke
    Feb 16, 2009
Loading...

Share This Page