Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ public MouseEvent mousePressed(MouseEvent mouseEvent)
.icon(consoleIconClosed)
.tooltip("Show console")
.onClick(this::toggleConsole)
.popup(Map.of("Clear", () -> consolePanel.clear()))
.build(), false);
Copy link
Author

@aussio aussio Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll admit this UI a tad bit ugly. It felt like an intuitive place to put the button though.

updateConsoleToggleButton();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ void append(String text)
}
}

void clear()
{
if (SwingUtilities.isEventDispatchThread())
{
textArea.setText("");
}
else
{
SwingUtilities.invokeLater(() -> textArea.setText(""));
}
}

OutputStream createOutputStream()
{
return new ConsoleOutputStream();
Expand Down