Skip to content

Show console in runner for non-graphical code#90

Merged
jvoigtlaender merged 3 commits into
fmidue:fmiduefrom
nimec01:console-runner
Jun 10, 2026
Merged

Show console in runner for non-graphical code#90
jvoigtlaender merged 3 commits into
fmidue:fmiduefrom
nimec01:console-runner

Conversation

@nimec01

@nimec01 nimec01 commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Closes #89

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the standalone runner (web/run.html + web/js/run.js) so that programs that do not produce graphics (no #screen canvas) can still display their runtime output on the runner page, addressing the request in #89.

Changes:

  • Adds a #message output container to run.html and styles it for runner use.
  • Prints runtime stdout/stderr messages into the runner page via printMessage.
  • Adjusts the “show graphics” detection to hide the console once a #screen canvas is created.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
web/run.html Adds a console output <pre id="message"> and includes runner.css so the runner can show non-graphical output.
web/js/run.js Routes runtime output through printMessage and hides the console when a graphics canvas is detected.
web/css/runner.css Adds runner-specific styling for the message area.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web/js/run.js Outdated
Comment thread web/js/run.js
@jvoigtlaender jvoigtlaender merged commit 8a82126 into fmidue:fmidue Jun 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run mode also for non-graphical tasks?

3 participants