Use the following steps to create and activate the script:
Edit the script using editor commands.
If you have not yet typed nvstore to save your changes, you may type nvrun to execute the contents of the temporary edit buffer.
Type nvstore to save your changes.
Enable the interpretation of the script by typing:
setenv use-nvramrc? true
Type reset-all to reset the system and execute the script, or type:
nvramrc evaluate
to execute the contents directly.
The following example shows you how to create a simple colon definition in the script.
ok nvedit 0: : hello ( -- ) 1: ." Hello, world. " cr 2: ; 3: ^C ok nvstore ok setenv use-nvramrc? true ok reset-all ... ok hello Hello, world. ok
Notice the nvedit line number prompts (0:, 1:, 2:, 3:) in the above example. These prompts are system-dependent.