[GRASS-dev] r.li.*: write cmd history?

Markus Neteler neteler at itc.it
Mon Mar 12 04:13:27 EDT 2007


Glynn Clements wrote on 03/11/2007 08:10 PM:
> Markus Neteler wrote:
>
>   
>> it would be great to add support for the command line
>> history to the r.li.* modules. Essentially these 4 lines
>> have to be added:
>>
>> struct History history;
>> ...
>>
>> G_short_history(out, "raster", &history);
>> G_command_history(&history);
>> G_write_history(out, &history);
>>
>>
>> I tried to modify
>> r.li.daemon/worker.c
>> accordingly but it doesn't help. Where should it be added
>> instead?
>>     
>
> AFAICT, in r.li.daemon/daemon.c; that's the only file which creates a
> new map (G_open_cell_new()). worker.c only opens existing maps.
>
>   
Thanks. Enhanced, submitted and works for all r.li.* modules.

Markus




More information about the grass-dev mailing list