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

Considerations for the window size #69

Open
bradenbest opened this issue May 26, 2024 · 1 comment
Open

Considerations for the window size #69

bradenbest opened this issue May 26, 2024 · 1 comment

Comments

@bradenbest
Copy link

bradenbest commented May 26, 2024

I just tried using this program (v1.4.2 based on the manpage) in my fullscreen terminal and found the column numbers on the side difficult to read, because they are huge and based on the size of the terminal. I also noticed that the manpage points out a bug where on Redhat 5.0, curses thinks the terminal window is huge, making the program unusable.

Both my issue and that bug could be fixed by adding functionality to resize the program from within the program. Or perhaps invert -m as it seems to do that by default. For my own purposes, -l 16 works just fine:

image

Though IMHO -l 16 should be the default (the reason for 16 becomes clear when you look at the row headers: 10, 20, 30, ...).

Edit: I guess -s is the same as -l 16? The manpage isn't clear about what "sector" means. From observation, the default behavior is to group in 4 bytes whereas -s changes it to 8 bytes and also sets the line length to 16.

Some things to consider.

@bradenbest
Copy link
Author

bradenbest commented May 26, 2024

That said, this is a very functional tool, quick, convenient and usable over ssh. Which is great because while xxd is a thing, it can be tedious and sometimes I just get tired of using xxd to edit binary files because you either have to xxd into a temp file, edit the temp, and then xxd -r the temp file back into the binary, or you have to be extra careful to make sure vim doesn't, say, force a linefeed at the end or encode to utf-8 despite :set binary because it's been long enough since the last time for me to forget little details like :set fenc, :set enc and :set ff.

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