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

Currently not possible to use stdin while program is running #37

Closed
barafael opened this issue May 2, 2022 · 3 comments
Closed

Currently not possible to use stdin while program is running #37

barafael opened this issue May 2, 2022 · 3 comments

Comments

@barafael
Copy link
Contributor

barafael commented May 2, 2022

I don't know how hard this would be, but it would be useful to me if the area in the main window where stdout is displayed also supported entering text into stdin. Specifically, I klask-ified a program which was using rustyline, a readline-like crate. Of course this gets into the realm of terminal emulators (?) so might be quite challenging, but anyway here goes the suggestion, feel free to close if not in scope.

@MichalGniadek
Copy link
Owner

Unfortunately, I don't think there is an easy way to implement this. It would require more terminal-emulator machinery (I have played with it on other projects, and it was challenging with a lot of edge cases). Also, it might be problematic on the interface end (e.g., I don't think egui supports colored edit fields).

But thanks for the suggestion and for trying out klask!

@barafael
Copy link
Contributor Author

barafael commented May 8, 2022

For the record, the normal enable_stdin on the Settings works well enough for me for most cases!

@MichalGniadek
Copy link
Owner

I'm glad to hear that!

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

No branches or pull requests

2 participants