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

Add a button to toggle between plain output and hexadecimal view #5

Open
janosgyerik opened this issue Oct 13, 2014 · 0 comments
Open

Comments

@janosgyerik
Copy link
Owner

At the moment the app display the raw data as it comes from the device. This is fine for devices that emit ASCII data line by line, but won't be very useful with devices that emit in a binary format.

It will be nice to have a button to toggle between plain output and hexadecimal format, something like the hexdump command does in Linux. Here's an example of the output of ls / | hexdump -C on my PC:

00000000  62 69 6e 0a 62 6f 6f 74  0a 64 61 74 61 0a 64 65  |bin.boot.data.de|
00000010  76 0a 65 74 63 0a 68 6f  6d 65 0a 6c 69 62 0a 6c  |v.etc.home.lib.l|
00000020  69 62 36 34 0a 6d 65 64  69 61 0a 6d 6e 74 0a 6f  |ib64.media.mnt.o|
00000030  70 74 0a 70 72 6f 63 0a  72 6f 6f 74 0a 73 62 69  |pt.proc.root.sbi|
00000040  6e 0a 73 65 6c 69 6e 75  78 0a 73 72 76 0a 73 79  |n.selinux.srv.sy|
00000050  73 0a 74 6d 70 0a 75 73  72 0a 76 61 72 0a        |s.tmp.usr.var.|
0000005e

Here's another variation, without the -C flag:

0000000 6962 0a6e 6f62 746f 640a 7461 0a61 6564
0000010 0a76 7465 0a63 6f68 656d 6c0a 6269 6c0a
0000020 6269 3436 6d0a 6465 6169 6d0a 746e 6f0a
0000030 7470 700a 6f72 0a63 6f72 746f 730a 6962
0000040 0a6e 6573 696c 756e 0a78 7273 0a76 7973
0000050 0a73 6d74 0a70 7375 0a72 6176 0a72
000005e
  • The first column indicating the position from the start can be omitted. It would be great to make it an option
  • The last column with plain text-ish version can be omitted. It would be great to make it an option
  • The format should be adjusted to the width and orientation of the device: it should have 8 columns on tablets when horizontal, and perhaps only 4 columns on phones when vertical. Something like that.
  • Should the toggle rewrite the lines that were already displayed, or should it apply to new lines only?
    • It would be great to rewrite lines already displayed too
    • It's ok if it doesn't rewrite and just apply to new input
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