(self, close_files=False,
              preserve_functions=False, preserve_base=False, preserve_deftype=False)
Clear everything required for the CLEAR command.
Clear everything required for the CLEAR command.
Clear everything required for the CLEAR command .
def _clear_all(self, close_files=False,
              preserve_functions=False, preserve_base=False, preserve_deftype=False):
        """Clear everything required for the CLEAR command."""
        if close_files:
            # close all files
            self.files.close_all()
        # Resets the stack and string space
        # Clears all COMMON and user variables
        # release all disk buffers (FIELD)?
        self.memory.clear(preserve_base, preserve_deftype)
        if not preserve_functions:
            self.parser.user_functions.clear()
        # Resets STRIG to off
        self.stick.is_on = False
        # stop all sound
        self.sound.stop_all_sound()
        # reset PLAY state
        self.sound.reset_play()
        # reset DRAW state (angle, scale) and current graphics position
        self.graphics.reset()
        # reset random number generator
        self.randomiser.clear()
        # reset stacks & pointers
        self.interpreter.clear()
def _clear_all ( self , close_files = False , preserve_functions = False , preserve_base = False , preserve_deftype = False ) : if close_files : # close all files self . files . close_all ( ) # Resets the stack and string space # Clears all COMMON and user variables # release all disk buffers (FIELD)? self . memory . clear ( preserve_base , preserve_deftype ) if not preserve_functions : self . parser . user_functions . clear ( ) # Resets STRIG to off self . stick . is_on = False # stop all sound self . sound . stop_all_sound ( ) # reset PLAY state self . sound . reset_play ( ) # reset DRAW state (angle, scale) and current graphics position self . graphics . reset ( ) # reset random number generator self . randomiser . clear ( ) # reset stacks & pointers self . interpreter . clear ( )