(self)
Run commands until control returns to user.
Run commands until control returns to user.
Run commands until control returns to user .
def loop(self):
        """Run commands until control returns to user."""
        if not self._parse_mode:
            return
        try:
            # parse until break or end
            self.parse()
        except error.Break as e:
            # ctrl-break stops foreground and background sound
            self._sound.stop_all_sound()
            self._handle_break(e)
        # move pointer to the start of direct line (for both on and off!)
        self.set_pointer(False, 0)
        # return control to user
        self.set_parse_mode(False)
def loop ( self ) : if not self . _parse_mode : return try : # parse until break or end self . parse ( ) except error . Break as e : # ctrl-break stops foreground and background sound self . _sound . stop_all_sound ( ) self . _handle_break ( e ) # move pointer to the start of direct line (for both on and off!) self . set_pointer ( False , 0 ) # return control to user self . set_parse_mode ( False )