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

Bell sound alert when giving me the prompt "(y/n)?" #1

Closed
ghost opened this issue Aug 5, 2015 · 4 comments
Closed

Bell sound alert when giving me the prompt "(y/n)?" #1

ghost opened this issue Aug 5, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 5, 2015

I have feature request: when running script with flag --ask add bell sound alert every time the interaction is needed (for example: when appears question Continue (y/n)?). It would be very convenient.

I found that's very easy to implement:
http://rosettacode.org/wiki/Terminal_control/Ringing_the_terminal_bell#UNIX_Shell

@sakaki-
Copy link
Owner

sakaki- commented Aug 8, 2015

Hi, OK I will look at adding this as an option. Making the noise is easy enough (tput bel), as is outputting this anytime genup (or buildkernel) itself prompts. Also emerge has a --alert option which could be passed through to make it vocalize.

I guess that would probably cover most of what you want (monitoring an interactive shell to detect certain strings is not trivial, so I'd rather avoid that route if possible)?

Best, sakaki

@ghost
Copy link
Author

ghost commented Aug 8, 2015

Yes.

Thank you very much.

@sakaki-
Copy link
Owner

sakaki- commented Aug 11, 2015

Hi, just released genup-1.0.8 (and buildkernel 1.0.12) with the feature you requested. To try it, first update sakaki-tools (running your existing version of genup should achieve this), then call genup with the --alert (or -A) flag to get the interactive prompt bell (this will automatically turn on --ask for you also).

Please let me know if this works at your end (and close out this issue if so).

Best, sakaki

@ghost
Copy link
Author

ghost commented Aug 13, 2015

It works perfectly.

@ghost ghost closed this as completed Aug 13, 2015
sakaki- pushed a commit that referenced this issue Mar 8, 2020
Update genup.8 man file for typo
necrose99 pushed a commit to arm64-gentoo-images/genup that referenced this issue Jun 25, 2024
This issue was closed.
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