docs: def change_directory(self, directory):
          """
          Changes the current directory.
  
          Change is made by running a "cd" command followed by a "clear" command.
          :param directory:
          :return:
          """
          self._process.write(('cd %s\n' % directory).encode())
          if sys.platform == 'win32':
              self._process.write((os.path.splitdrive(directory)[0] + '\r\n').encode())
              self.clear()
          else:
              self._process.write(b'\x0C')