jcubic / jquery.terminal

jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
https://terminal.jcubic.pl
MIT License
3.11k stars 571 forks source link

Possible to Render Output Contents in Canvas Based? #879

Open KiddoV opened 1 year ago

KiddoV commented 1 year ago

I have an idea for a new feature for jQuery Terminal

I was wondering if we can render all output contents in canvas. I am not sure how it work, but XTerm.JS did it with this add on: https://github.com/xtermjs/xterm.js/tree/master/addons/xterm-addon-canvas

I think with this feature, JQTerminal will be more performant and customizable than the default HTML rendering. Also do you think this will cost less memory consumption?

jcubic commented 1 year ago

It will be a lot of work since you probably also will want a scrollbar so everything will need to be handled in the library. But jQuery Terminal can add events and handlers that will make something like this possible.

But if something like this will ever be created it will need to be part of version 3.0, I'm only not sure when it will be implemented, I don't have much time to work on it.