From 46c07296a08e4cdde3d8363c79fc7de36f21ed0b Mon Sep 17 00:00:00 2001 From: Mike Sullivan Date: Wed, 13 May 2026 17:11:47 +0100 Subject: [PATCH] When clearing, enforce text colour to black and move cursor to the black text --- rascal2/widgets/terminal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rascal2/widgets/terminal.py b/rascal2/widgets/terminal.py index 71185824..ff472771 100644 --- a/rascal2/widgets/terminal.py +++ b/rascal2/widgets/terminal.py @@ -97,6 +97,8 @@ def write_error(self, text: str): def clear(self): """Clear the text in the terminal.""" + self.write_html('
" "
') + self.text_area.moveCursor(QtGui.QTextCursor.MoveOperation.Start, QtGui.QTextCursor.MoveMode.MoveAnchor) self.text_area.setPlainText("") self.update()