-
Notifications
You must be signed in to change notification settings - Fork 27
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
Consider making output as wide as the terminal #3
Comments
Thanks for good input :) I assume this relates to the hexdump view? Quite a lot of people have a strong inclination to use multiples of eight in hexdump widths, but this being configurable surely covers most cases. How about supporting:
|
yeah, that is what I had in mind ;) if auto -- go after full width, if specified -- that is the one to use |
I suggest an alternate approach using the os module
Then an additional argument can be made which asks for the number of bytes to be printed on each line |
@Utkarsh1308 I appreciate your efforts 👍 |
Thanks for the pull request but there might be a little misunderstanding in what feature was requested. The idea is that we want to either use all the screen area we have available, or to group our input to other than multiples of 16 (normal hexdump format). @yarikoptic suggested this but doesn't need it. This feature is a little like the format string given in the
@Utkarsh1308 if you need the feature youve implemented (filling rows with characters), then I'm happy to merge it. But if this isn't needed by you, then I'd rather not add a feature which is likely not to be used. |
I understand! Sorry for the misunderstanding. Please don't close my PR. I'll add a new attribute which does the desired behavior wanted by @yarikoptic :D I do want the width attribute I've implemented. But I'd be happy to add an attribute which gives this behavior |
For achieving this behavior I will have to create an argument. Then I'll have to replace 16 with that argument in render.py :) Line 78 in 1e4f7b5
Line 80 in 1e4f7b5
Line 114 in 1e4f7b5
Line 127 in 1e4f7b5
Line 128 in 1e4f7b5
|
I found an alternate approach to get the desired output. Please review my PR |
Hey @juhakivekas |
Possibly making it optional... I would have added
--width=auto
and did max terminal width if that information is available ... here is code from tqdmThe text was updated successfully, but these errors were encountered: