8000 more: Implement option '-d' by deantvv · Pull Request #2376 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

more: Implement option '-d' #2376

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

Merged
merged 1 commit into from
Jun 11, 2021
Merged

Conversation

deantvv
Copy link
Contributor
@deantvv deantvv commented Jun 9, 2021

Implement option '-d' (silent mode)

The method used in make_prompt_and_flush() is a bit messy to deal with both silent and help text.
If you have any suggestions, please comment. I would be more than happy to fix it.

Related to #2320

let status = format!("--More--({})", status_inner);

let banner = match (silent, wrong_key) {
(true, true) => "[Press 'h' for instructions.]".to_string(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We suggest pressing 'h', but that's not yet implemented. I think we shouldn't give this suggestion as long as 'h' is not yet implemented.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "[Press 'h' for instructions. (unimplemented)]" so that it's clear that it should be there but still needs to be added?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change suggestion to "unimplemented" from @tertsdiepraam suggestion.

Implement option '-d' (silent mode)

Related to uutils#2320
@deantvv deantvv requested a review from tertsdiepraam June 11, 2021 11:12
@tertsdiepraam tertsdiepraam merged commit 960828b into uutils:master Jun 11, 2021
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

Successfully merging this pull request may close these issues.

3 participants
0