Saving and loading the console history

Sometimes, when you have tried things out in the console, you will like to keep a file trace of what you have experimented with, perhaps to save portions of it later in a source file. This can be done with the following simple console command:

save %history system/console/history

Here, history is just the file you want to store them in (this could be any other name).

From Version 0.6.4 onward, the history command is preserved between sessions, but if you would like to start a session with an older file with commands, you can retrieve the history like this:

system/console/history: load %history

Get Learn Red - Fundamentals of Red now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.