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.
May I respectfully suggest that you should be using script files for your work.
I taught all my students to do all their work in script files, as then they have a
record of what they did , and in what order they did it. Much easier for me to
see what they did wrong and to help them.
In your case if it does crash then you still have the script files.
If your system has many steps then break it up into different files
so that you only have to rerun the last part if there is a crash.
A command to save history (and list of open files) would save a lot of