This is an automated email from the ASF dual-hosted git repository.
mattcasters pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new 3508da16f2 Fixes #8642 : Make the terminal cursor follow the Hop theme
colours (#8643)
3508da16f2 is described below
commit 3508da16f2ecc9b50b3ac3ff8a4e6f87dc039b88
Author: Bart Maertens <[email protected]>
AuthorDate: Tue Sep 29 11:32:44 2026 +0200
Fixes #8642 : Make the terminal cursor follow the Hop theme colours (#8643)
---
.../org/apache/hop/ui/hopgui/terminal/JediTerminalWidget.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git
a/ui/src/main/java/org/apache/hop/ui/hopgui/terminal/JediTerminalWidget.java
b/ui/src/main/java/org/apache/hop/ui/hopgui/terminal/JediTerminalWidget.java
index 91c865e5fe..30416c3295 100644
--- a/ui/src/main/java/org/apache/hop/ui/hopgui/terminal/JediTerminalWidget.java
+++ b/ui/src/main/java/org/apache/hop/ui/hopgui/terminal/JediTerminalWidget.java
@@ -266,6 +266,16 @@ public class JediTerminalWidget implements ITerminalWidget
{
}
}
+ /**
+ * JediTerm seeds its style state (which paints the block cursor as the
inverse of the default
+ * style) from this method, not from the foreground/background getters
above. Without it the
+ * cursor stays black, which is invisible on a dark background.
+ */
+ @Override
+ public TextStyle getDefaultStyle() {
+ return new TextStyle(getDefaultForeground(), getDefaultBackground());
+ }
+
@Override
public TextStyle getFoundPatternColor() {
TerminalColor bg = new TerminalColor(255, 255, 0);