##// END OF EJS Templates
Address @takluyver's comments.
Jonathan Frederic -
Show More
@@ -698,8 +698,6 b' class FrontendWidget(HistoryConsoleWidget, BaseFrontendMixin):'
698 # to spaces so that output looks as expected regardless of this
698 # to spaces so that output looks as expected regardless of this
699 # widget's tab width.
699 # widget's tab width.
700 text = text.expandtabs(8)
700 text = text.expandtabs(8)
701
702 print([ord(c) for c in text])
703 self._append_plain_text(text, before_prompt=True)
701 self._append_plain_text(text, before_prompt=True)
704 self._control.moveCursor(QtGui.QTextCursor.End)
702 self._control.moveCursor(QtGui.QTextCursor.End)
705
703
@@ -710,7 +708,7 b' class FrontendWidget(HistoryConsoleWidget, BaseFrontendMixin):'
710 self.clear_output()
708 self.clear_output()
711
709
712 def clear_output(self):
710 def clear_output(self):
713 """Clear the output area."""
711 """Clears the current line of output."""
714 cursor = self._control.textCursor()
712 cursor = self._control.textCursor()
715 cursor.beginEditBlock()
713 cursor.beginEditBlock()
716 cursor.movePosition(cursor.StartOfLine, cursor.KeepAnchor)
714 cursor.movePosition(cursor.StartOfLine, cursor.KeepAnchor)
General Comments 0
You need to be logged in to leave comments. Login now