help-octave
[Top][All Lists]
Advanced

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

Re: Command to save command history


From: Ian McCallion
Subject: Re: Command to save command history
Date: Mon, 27 Jul 2020 15:01:10 +0100

On Monday, 27 July 2020, marco atzeri <marco.atzeri@gmail.com> wrote:
On Mon, Jul 27, 2020 at 12:59 PM Ian McCallion wrote:
>
> Is there an Octave command to save the command history?.History is
> saved when Octave terminates normally, but all history accumulated
> since the last startup is lost if Octave crashes or is killed.
>
> The reason for asking is that Octave 5.2.0 on windows crashes
> frequently, especially when using plotting. During development it is
> easily possible to request plots that go into a loop and hang. Ctrl-C
> is ineffective at that point and the only solution is to use the task
> manager to kill Octave and restart it.
>
> I can put up with having to restart Octave occasionally, but it is a
> real pain to lose the history and have to reopen all the files that
> were open in the editor.
>
> A command to save history (and list of open files) would save a lot of
> frustration.
>
> Cheers... Ian
>
Hi Ian,
you can use diary
https://octave.org/doc/v5.2.0/Diary-and-Echo-Commands.html#Diary-and-Echo-Commands

I didn't make it clear, but I want to be able to recall the commands using up and down arrow so diary does not do it for me.

In truth I can't see any reason why command history and open file are not kept up-to-date at the end of every command.

Cheers... Ian

reply via email to

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