Skip to content

Conversation

jeromew
Copy link
Contributor

@jeromew jeromew commented Sep 27, 2024

This is a proposal for a new demo for redbean-demo.

it invokes xterm.js and then creates a 2 way channel with redbean

  • an SSE Server is created in redbean that forks an interactive shell like powershell.exe or bash (could be ssh) and sends the output to xterm.js
  • POST requests are used to send user commands to the shell

it currently works for me on both windows 10 & a RockyLinux8 vm

it could probably be improved by using a tty/pty in the forked process but I was not sure how to do that from redbean.

@github-actions github-actions bot added the tool label Sep 27, 2024
@jart jart force-pushed the master branch 2 times, most recently from 3048620 to 6245732 Compare December 22, 2024 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant