Allow display of HTML output by a console application to enable some nice graphical/interactive features. #10098

Open
opened 2026-01-31 02:12:31 +00:00 by claunia · 0 comments
Owner

Originally created by @metawrap-dev on GitHub (Aug 11, 2020).

Description of the new feature/enhancement

Continuing from https://github.com/microsoft/terminal/issues/5746#issuecomment-671601536

It would be fantastic if I could just pipe out HTML5 from my console app and have it display on the terminal.

Proposed technical implementation details (optional)

I'm imagining some kind of escape sequence that enables/disables HTML chunk output or a file/pipe that could be written to/read from. The escape sequence would determine the dimensions/container types. This sequence could be output by any app even running remote but for I am mainly considering locally running command-line apps. An app could interrogate the environment vars to determine if the HTML rendering option was available.

HTML output could be rendered within the following container types.

  • An inline WebView that is scrolled along and put to sleep off-screen? Gets turned into an image when the parent app closes? I could imaging starting an app that outputs some HTML/JS that opens a WebSocket back to the parent app with all sorts of possibilities. Live graphs, buttons etc.
  • A popup window?
  • An underlay that takes up the entire terminal window. such that content is rendered under the terminal text.
  • An overlay that takes up the entire terminal window. such that content is rendered over the terminal text?

These last two could be used for backgrounds, Persistent graphs, VStatus widgets, Controls. etc.

It would change the terminal into a graphical environment based on HTML/CSS/SVG/JS. I suspect it would have rapid and enthusiastic adoption by developers. Could be awful. Could be amazing.

Originally created by @metawrap-dev on GitHub (Aug 11, 2020). # Description of the new feature/enhancement Continuing from https://github.com/microsoft/terminal/issues/5746#issuecomment-671601536 It would be fantastic if I could just pipe out HTML5 from my console app and have it display on the terminal. # Proposed technical implementation details (optional) I'm imagining some kind of escape sequence that enables/disables HTML chunk output or a file/pipe that could be written to/read from. The escape sequence would determine the dimensions/container types. This sequence could be output by any app even running remote but for I am mainly considering locally running command-line apps. An app could interrogate the environment vars to determine if the HTML rendering option was available. HTML output could be rendered within the following container types. - An inline WebView that is scrolled along and put to sleep off-screen? Gets turned into an image when the parent app closes? I could imaging starting an app that outputs some HTML/JS that opens a WebSocket back to the parent app with all sorts of possibilities. Live graphs, buttons etc. - A popup window? - An underlay that takes up the entire terminal window. such that content is rendered under the terminal text. - An overlay that takes up the entire terminal window. such that content is rendered over the terminal text? These last two could be used for backgrounds, Persistent graphs, VStatus widgets, Controls. etc. It would change the terminal into a graphical environment based on HTML/CSS/SVG/JS. I suspect it would have rapid and enthusiastic adoption by developers. Could be awful. Could be amazing.
claunia added the Area-VTProduct-TerminalArea-ExtensibilityIssue-Scenario labels 2026-01-31 02:12:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10098