code: def setHistory(self, num):
      self.ptr = num
      self.setText(self.history[self.ptr])
  
file_path: pyqtgraph/pyqtgraph/console/CmdInput.py
imports: from ..Qt import QtCore, QtWidgets
label_desc: Use image node_id 5 for calling the CmdInput obj's underlying member method code with example usage: obj.setHistory(num) without return types