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

Add support for interactive programs to server console #3712

Closed
1 task done
anondev-sudo opened this issue Oct 27, 2021 · 15 comments
Closed
1 task done

Add support for interactive programs to server console #3712

anondev-sudo opened this issue Oct 27, 2021 · 15 comments
Labels
feature request A request for a new feature.

Comments

@anondev-sudo
Copy link

Is there an existing feature request for this?

  • I have searched the existing issues before opening this feature request.

Describe the feature you would like to see.

Add way to run command in console when another command is running and allow to use keyboard keys when you click on the console.

Describe the solution you'd like.

When you run some command in console, you can't stop it, as you can't use CTRL + C in the console.

Allow us to do so, and to run any command while another command is running.
Also you can't use F keys on keyboard in pterodactyl console.

Additional context to this request.

No response

@anondev-sudo anondev-sudo added the feature request A request for a new feature. label Oct 27, 2021
@notAreYouScared
Copy link
Contributor

Why would you need to stop a command? The console is basically forwarding the commands to whatever program is running in the startup.

@Jelcoo
Copy link
Contributor

Jelcoo commented Oct 27, 2021

There is litterly a stop button next to the console

@anondev-sudo
Copy link
Author

Ik, but you can't use keyboard keys in console. Like normally when you write for example node index.js to console and then you want to stop the process, you can press CTRL + C keys on the keyboard. But inside pterodactyl console you can't do this.

Also you can't use arrow keys in pterodactyl console, so you can't make choice prompts using Inquirer.js

@Jelcoo
Copy link
Contributor

Jelcoo commented Oct 27, 2021

You can use arrow key up and down to cycle through commands you used before

@anondev-sudo
Copy link
Author

Ok, but you can't use keyboard keys like F keys in console. And you can't use CTRL + letter in console too

@Jelcoo
Copy link
Contributor

Jelcoo commented Oct 27, 2021

Pterodactyl Software is not designed to be interactive, it is designed to be easy to use. If you want to use keybinds, I recommend using a local terminal.

@DaneEveritt
Copy link
Member

Correct, but @anondev-sudo is making a completely valid point that you cannot run interactive programs using the console right now, and there are a lot of programs you can run in Pterodactyl that would benefit from that.

@anondev-sudo
Copy link
Author

You can't connect to pterodactyl container using ssh, so users can't do that. If it will be possible then it will solve the issue or make the console more interactive

@Marfjeh
Copy link

Marfjeh commented Nov 4, 2021

Maybe an idea to use xterm.js as a console?

@schrej schrej changed the title Improve console Add support for interactive programs to server console Nov 4, 2021
@schrej
Copy link
Member

schrej commented Nov 4, 2021

@Marfjeh
Copy link

Marfjeh commented Nov 4, 2021

@Marfjeh It's already using xterm.js: https://github.com/pterodactyl/panel/blob/develop/resources/scripts/components/server/Console.tsx

Ah, I see, I thought it was using something else. my bad.

@anondev-sudo
Copy link
Author

anondev-sudo commented Nov 4, 2021

Maybe it should use some real typing, so no enter a command field. When you put mouse on console and press keys, it should be forwarded to console.

@DaneEveritt
Copy link
Member

Due to the overarching complexity of this request and the extremely limited resources we can provide this project right now, I am closing this request.

There is just no way it ever happens in any reasonable amount of time.

@anondev-sudo
Copy link
Author

This is sad, isn't it possible to forward F keys, CTRL + key and others to the console when you have cursor in the type a command field?

@anondev-sudo
Copy link
Author

Isn't it possible to add just when you press CTRL + C, it will be forwarded to console for now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A request for a new feature.
Projects
None yet
Development

No branches or pull requests

6 participants