bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] Possibility of retrieve time/date of each command


From: Chet Ramey
Subject: Re: [Bug-readline] Possibility of retrieve time/date of each command
Date: Wed, 16 Nov 2011 11:20:07 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 11/16/11 7:55 AM, Simón wrote:
> Hi,
>     I use lftp 4.3.3 and it uses readline to save a log with the list of
> commands executed. I would like that this list saves too the date/time of
> that commands.
>     I report this to lftp developer and he says that I address this feature
> request to readline developers.
>     Is possible this feature?

This feature already exists in readline 6.x versions.  Timestamp
information is kept with each history entry (entry->timestamp, stored
as a string), and can be retrieved and displayed by an application.  If
an application sets the `history_write_timestamps' variable to a non-zero
value, timestamps get written to the history file.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]