Skip to content

newline in the err() method #4

Description

@eopb

Copied from https://gitlab.com/efunb/read_input/-/issues/5

It seems that the err() method automatically append a newline character at the end. Is it possible to not add this newline and let the user add it if necessary? I have the following code:

    let input = input::<u8>()
        .msg("What's your age: ")
        .err("That's not correct, try again: ").get();

The user input for msg() is at the same line with What's your age: . I want the user's next try is also at the same line with That's not correct, try again:. That will make the UI a little bit more clean. Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions