Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redbean demo with an xterm.js powershell/bash #1304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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