Reset

From MiniScript Wiki
Revision as of 04:49, 20 January 2021 by JoeStrout (talk | contribs) (Created page with "In Mini Micro, the <c>reset</c> command has several effects: # Clears the current program from memory. # Clears all global variables, except the ones defined at startup....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In Mini Micro, the reset command has several effects:

  1. Clears the current program from memory.
  2. Clears all global variables, except the ones defined at startup.
  3. Resets env.importPaths to `[".", "/usr/lib", "/sys/lib"]`.
  4. Prints the message "Program source cleared and reset"

reset is defined in /sys/startup.ms.