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

user experience improvements (hexin / b64in) #4

Open
vanrein opened this issue Sep 20, 2016 · 2 comments
Open

user experience improvements (hexin / b64in) #4

vanrein opened this issue Sep 20, 2016 · 2 comments

Comments

@vanrein
Copy link
Owner

vanrein commented Sep 20, 2016

A few ideas for improving the humanity of the tool:

  • skip the wait when data is already being presented (as in copy/paste)
  • try to get better looks; perhaps suppress echo and do it explicitly
  • when suppressing echo, we can actually provide stylish output:
    • limit lines to 16 well-formatted hex characters, plus ASCII output, like hd
    • space forward lines with half-way addresses to their normal column
  • print a space character after the prompt
  • print an explicit ^D (or a mere newline) when the input is terminated

The same would apply to b64in, of course. Except that its addresses are a bit weird, including partials.

@vanrein
Copy link
Owner Author

vanrein commented Feb 2, 2019

And:

  • Print the hexin prompt only under isatty(0) to allow input redirection
  • Print the hexout prompt only under isatty(1) to allow output redirection

@vanrein
Copy link
Owner Author

vanrein commented Feb 2, 2019

Implemented in 6afa851 are:

  • Print the hexin prompt only under isatty(0) to allow input redirection
  • Print the hexout prompt only under isatty(1) to allow output redirection

The user can pipe from/to tee to suppress the prompt for interactive uses. Without prompt, the waiting time could also be removed from hexin.

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

No branches or pull requests

1 participant