Difference between revisions of "Reset"

From MiniScript Wiki
Jump to navigation Jump to search
(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....")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
In [[Mini Micro]], the <c>reset</c> command has several effects:
+
In [[Mini Micro]] and [[Farmtronics]], the <c>reset</c> command has several effects:
  
 
# Clears the current program from memory.
 
# Clears the current program from memory.
 
# Clears all global variables, except the ones defined at startup.
 
# Clears all global variables, except the ones defined at startup.
# Resets <c>[[env]].importPaths</c> to `[".", "/usr/lib", "/sys/lib"]`.
+
# Resets <c>[[env]].importPaths</c> to <c>[".", "/usr/lib", "/sys/lib"]</c>.
 
# Prints the message "Program source cleared and reset"
 
# Prints the message "Program source cleared and reset"
  
Line 9: Line 9:
  
 
[[Category:Mini Micro]]
 
[[Category:Mini Micro]]
 +
[[Category:Farmtronics]]

Latest revision as of 14:11, 21 January 2023

In Mini Micro and Farmtronics, 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.