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

gui: prompt does not work when backgrounded #640

Open
oliver-sanders opened this issue Oct 17, 2024 · 0 comments
Open

gui: prompt does not work when backgrounded #640

oliver-sanders opened this issue Oct 17, 2024 · 0 comments
Labels
bug Something isn't working small
Milestone

Comments

@oliver-sanders
Copy link
Member

This (and any other) prompt, will not work if the command is backgrounded:

ret = input(
cparse('<yellow>Do you want to remove this file? (y/n):</yellow>'))

E.G:

cylc gui &

This works (because it's sending the text to the processes stdin, not the terminal):

cylc gui <<< y &

Ideally, we would fail the command in this situation, rather than issuing a prompt that the user can not answer.

@oliver-sanders oliver-sanders added bug Something isn't working small labels Oct 17, 2024
@oliver-sanders oliver-sanders added this to the pending milestone Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working small
Projects
None yet
Development

No branches or pull requests

1 participant