Skip to content

Support embedded UI #49

@gulachek

Description

@gulachek

An awesome feature of tty apps is embedded UI. This should be available in this platform. For example, imagine a file browser that can delegate to a separate program to view or edit a file. The viewing would conceivably be rendered within the file browser, and the viewer should also probably be available as an individual program too.

I think this is possible by http proxy patterns. Imagine your file browser is on a remote machine over ssh. It needs to run its own html forms server. This means the user's browser can't navigate to the remote server as a given (technically could expose over the internet but whole point of html forms is to make that sys admin stuff for these simple apps easier). What we need is to reuse the forwarded unix socket for these simple apps embedded browser. I think if a forms client could create an http proxy, it could play middle man with the embedded forms server. All input messages and output messages could be intercepted and forwarded.

I think the main complexity and unknown is what exactly we need. Do we need to support a full fledged forms server that can handle multiple connections? Or do we just need a single embedded connection? My guess is probably generalizing is the safer bet, and the app doing the embedding can choose to accept multiple connections or not. Those handling multiple connections will also be responsible for "window management" or layout. TBD if it should be able to delegate to users host.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions