code: def clear(self, scope = 'screen'):
          
          if scope == 'line':
              self.clear('beginning of line')
              self.clear('end of line')
          else: self.stream.write(self._get_cap('clear '+scope))
          self.flush()
docs: see doc in Term class