From 46c07296a08e4cdde3d8363c79fc7de36f21ed0b Mon Sep 17 00:00:00 2001 From: Mike Sullivan Date: Wed, 13 May 2026 17:11:47 +0100 Subject: [PATCH 1/2] 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() From 34d16924158ffe9df8c23ee84efba69dd0a1096d Mon Sep 17 00:00:00 2001 From: Mike Sullivan Date: Wed, 20 May 2026 16:02:05 +0100 Subject: [PATCH 2/2] remove hardcoding black text colour when resetting terminal --- rascal2/widgets/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rascal2/widgets/terminal.py b/rascal2/widgets/terminal.py index ff472771..a55c1cf3 100644 --- a/rascal2/widgets/terminal.py +++ b/rascal2/widgets/terminal.py @@ -97,7 +97,7 @@ def write_error(self, text: str): def clear(self): """Clear the text in the terminal.""" - self.write_html('
" "
') + self.write_html('
" "
') self.text_area.moveCursor(QtGui.QTextCursor.MoveOperation.Start, QtGui.QTextCursor.MoveMode.MoveAnchor) self.text_area.setPlainText("") self.update()