Re: root_hist

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Thu, 21 Sep 2006 18:36:08 +0200


Hi,

hmm, my (and I believe almost everybody's) .root_hist contains the last 400..499 commands. You can adjust these sizes in clib/src/Getline.c:

#ifndef HIST_SIZE
#define HIST_SIZE 500
#endif
#ifndef HIST_SAVE
#define HIST_SAVE 400
#endif

It will add up to HIST_SIZE lines; once that's reached, it will remove the oldest ones, until it's back down to HIST_SAVE lines.

Cheers, Axel.

OKUMURA, Akira wrote:
> Hello Rene,
>
> I would like to store more than 100 commands.
>

>>You can use the up and down arrow at the command line, to access the

> previous and next command. The
>>commands are recorded in the history file $HOME/.root_hist. It contains

> the last 100 commands. It is a text
>>file, and you can edit, cut, and paste from it.

> --- from users's guide
>
> Sincerely,
>
> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
> Institute for Cosmic Ray Research, University of Tokyo
> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan
> Phone/Fax : +81 4-7136-3153
> Skype : okumura.akira
>
> On 2006/09/21, at 4:19, Rene Brun wrote:
>
>> What do you mean by "record size of root_hist" ?
>> There is no such concept.
>> What is the problem?
>>
>> Rene Brun
>>
>> OKUMURA, Akira wrote:
>>> Hello ROOTers,
>>>
>>> Can I change the record size of root_hist ?
>>>
>>> If I have to recompile that part of ROOT,
>>> could you tell me where I need to edit ?
>>>
>>> Sincerely,
>>>
>>> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
>>> Institute for Cosmic Ray Research, University of Tokyo
>>> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan
>>> Phone/Fax : +81 4-7136-3153
>>> Skype : okumura.akira
>>
>>

>
Received on Thu Sep 21 2006 - 18:36:16 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET