How to set hist buf size in perldb?

B

bill

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
 
K

kj

In said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top