REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 8-Feb-2009 Edit History  

REBOL 3 Usage: History Recall

Each line typed into REBOL at the prompt is stored in a history block, and it can be recalled later using the up and down arrow keys. For instance, pressing the up arrow once recalls the prior input line.

The history block containing all input lines is accessed from the system console object:

probe system/console/history

You can save the history block as a file:

save %history.r system/console/history

and it can be reloaded later with:

system/console/history: load %history.r

These lines can be put in the user.''r file to save and reload your history between REBOL sessions.


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin