-
Notifications
You must be signed in to change notification settings - Fork 33
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
rsshell integration - pseudocommands #65
Comments
Isn't that just a rather complicated alternative to running an irc server on localhost? |
Yes, and yet, an irc server is a lot of overhead for basically a single |
Well, you have my interest. |
I like it. |
I don't know how feasible this is, but what if rsshell ran all the programs |
You can do the background thing with I/O redirection using sockets. You can also just continue writing commands with the assumption that they're being directly invoked (i.e. writing to stdout without them needing to be aware of the socket stuff) if you just write a single wrapper command which simply takes any command and executes it as-is while redirecting its stdin and stdout to the socket. So I think it can certainly be done, even without changing existing commands. Nonetheless, it might still be hard to actually make it work. |
Here's what I'm imagining you're saying: Every command is ran in a separate thread. Each running command has an output buffer. If a command does That way, we wouldn't need to change any of the commands, and it would probably solve the problem in the original issue. |
Pretty much. Doesn't necessarily have to be special keystrokes, could just Other than that, the original thing I opened the issue about was allowing |
@firerogue: What's the difference between "special input" and a command that passes messages to daemons? What is the expected behavior of such a command if the daemon isn't running? @WesleyAC: That sounds a lot like a terminal multiplexer. Also, how would you deal with non-ASCII data, like ncurses interfaces? |
@mrhmouse: It is, just built into the shell. As for non ascii data, I don't think it would be a problem. If someone writes to stdout, they should make sure the terminal can handle it. (Pardon me if I misunderstood, I'm not sure if I understand exactly what you are asking.) |
What I'm getting at is that there are interfaces besides the exchange of text between user and program. For example, check out the terminal file manager Maybe I'm missing what you mean by "buffer", though, and this isn't even an issue. |
@mrhmouse: what if the buffer can keep track of exactly what's supposed to The difference between the two things I'm describing is that one is a |
Issue #62 added an irc bot, and the discussion proposed another. Not that I don't love irc bots, but in a project like this, how many people are actually going to be able to run their own? So I want to write a program that would allow them to connect locally in the background, and you would communicate via command line. In order to not have to spawn a second window, I want to be able to do this over the main rsshell. However, it doesn't make sense for the commands to exist if the "server" isn't running or no bots are connected, so I propose that programs should be able to register and unregister commands with the shell when they start up or turn off.
In my specific usecase, starting up another bot and connecting it to the "server" would cause the server to register a command allowing you to communicate with the bot (or bots) from the command line.
The text was updated successfully, but these errors were encountered: