-
Notifications
You must be signed in to change notification settings - Fork 25
TerminalRenderer API #56
Comments
I have a couple of questions about the resizing:
|
|
I have reservations as well about allowing resizing to larger than the available window space. Mostly for the reason that stacked scrollbars are going to be difficult to manage. (if the user scrolls their mouse wheel, which one should scroll?). In my case though it might be harder to get the maximum dimensions since I don't implement custom logic for determining size, I just reuse the |
Work in progress on the API is in my clone of the repo: @dgriffen If you have any feedback on the API, I'd appreciate it. |
@IlyaBiryukov I've looked at the API and have a few comments
|
@dgriffen Here is the latest iteration that should cover your second comment. I guess we can reuse |
The new version of the |
Suggestion: Provider
TerminalRenderer
API.Reason:
Sometimes Whack Whack terminal may be used only as UI to render some ANSI terminal running somewhere else. In this case, only data stream may be available. A solution to this so far has been to pipe this stream through stdio of a broker console app, and make Whack Whack run this app.
This solution doesn't work prior to Windows 10 because Windows doesn't support ANSI. Any ANSI escape chars got transformed into garbage when winpty (in node-pty) reads them from the console buffer of the broker app.
The suggestion:
Provide an analog of
TerminalRenderer
API as in this VSCode Suggestion that would allow to:Additionally, external terminal may not follow the xterm's window size and has its own dimensions.
Ideally, the
TerminalRenderer
API would need to account for that by:The text was updated successfully, but these errors were encountered: