You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the WebTerminal's component Context is passed directly into the TerminalApp methods. While functional, this poses a few ergonomics problems.
First, creating callbacks is much more annoying. The return value of the callback's closure is implicitly converted into the component's message type; however, there is a layer of abstraction between the terminal app's message type and the web terminal message type. This requires the callback creator to either create their message type or construct a web terminal message. Ideally, this same implicit conversion behavior can be maintained.
Second, there is currently no way for the terminal app to access the terminal or the terminal backend. Ideally, this would be accessible via the context.
The text was updated successfully, but these errors were encountered:
Currently, the
WebTerminal
's componentContext
is passed directly into theTerminalApp
methods. While functional, this poses a few ergonomics problems.First, creating callbacks is much more annoying. The return value of the callback's closure is implicitly converted into the component's message type; however, there is a layer of abstraction between the terminal app's message type and the web terminal message type. This requires the callback creator to either create their message type or construct a web terminal message. Ideally, this same implicit conversion behavior can be maintained.
Second, there is currently no way for the terminal app to access the terminal or the terminal backend. Ideally, this would be accessible via the context.
The text was updated successfully, but these errors were encountered: