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

Shell requests for input are captured incorrectly. #118

Open
kierun opened this issue Jul 26, 2024 · 1 comment
Open

Shell requests for input are captured incorrectly. #118

kierun opened this issue Jul 26, 2024 · 1 comment

Comments

@kierun
Copy link

kierun commented Jul 26, 2024

How to reproduce

  1. Get the following script:
#!/bin/bash

echo -n "Enter Fullname: "
read -r fullname
echo "Hello $fullname"
  1. Execute it without colout.
  2. Execute it with colout.

What happens

The request for input does not appear if output is redirected to colout. It does when it is not.

What should happen

The request for input should appear in the desired colour.

Notes

Here is a full screenshot:

screenshot

@kierun
Copy link
Author

kierun commented Jul 26, 2024

Note that this happens with dnf5 and apt as well… This is how I found out.

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

1 participant