🖥️ Hex viewer with a twist

@dd86k dd86k authored on 20 Feb 2022
.github/ workflows Add workflow for Github 2 years ago
docs Redone search engine 2 years ago
src Add OSFile structure for new I/O 2 years ago
tests Re-improve input system on Linux, Windows 2 years ago
.gitignore Add trace and stdin interactive mode 2 years ago
.gitmodules no modules 6 years ago
LICENSE Bump LICENSE 3 years ago
README.md Update README 2 years ago
ddhx-test-library Re-improve input system on Linux, Windows 2 years ago
dscanner.ini Add OSFile structure for new I/O 2 years ago
dub.sdl Re-improve input system on Linux, Windows 2 years ago
README.md

ddhx, Hexadecimal File Viewer

Offset h   0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
       0  4d 5a 90 00 03 00 00 00 04 00 00 00 ff ff 00 00  MZ..............
      10  b8 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00  ........@.......
      20  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
      30  00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00  ................
      40  0e 1f ba 0e 00 b4 09 cd 21 b8 01 4c cd 21 54 68  ........!..L.!Th
      50  69 73 20 70 72 6f 67 72 61 6d 20 63 61 6e 6e 6f  is program canno
      60  74 20 62 65 20 72 75 6e 20 69 6e 20 44 4f 53 20  t be run in DOS
      70  6d 6f 64 65 2e 0d 0d 0a 24 00 00 00 00 00 00 00  mode....$.......
      80  50 45 00 00 4c 01 03 00 79 3e 06 59 00 00 00 00  PE..L...y>.Y....
      90  00 00 00 00 e0 00 22 00 0b 01 30 00 00 0e 20 00  ......"...0... .
      a0  00 4a 00 00 00 00 00 00 2e 2c 20 00 00 20 00 00  .J......., .. ..
      b0  00 40 20 00 00 00 40 00 00 20 00 00 00 02 00 00  .@ ...@.. ......
      c0  04 00 00 00 00 00 00 00 06 00 00 00 00 00 00 00  ................
      d0  00 c0 20 00 00 02 00 00 00 00 00 00 02 00 60 85  .. ...........`.
      e0  00 00 10 00 00 10 00 00 00 00 10 00 00 10 00 00  ................
      f0  00 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00  ................
     100  dc 2b 20 00 4f 00 00 00 00 40 20 00 e4 46 00 00  .+ .O....@ ..F..
     110  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     120  00 a0 20 00 0c 00 00 00 a4 2a 20 00 1c 00 00 00  .. ......* .....
     130  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     140  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     150  00 00 00 00 00 00 00 00 00 20 00 00 08 00 00 00  ......... ......
 Hex | 448 B | 0 B - 448 B | 0% - 0.0211302%

ddhx is a quick and dirty TUI hexadecimal viewer meant to replace my 0xdd utility, written in a proper system language, mostly for myself to use.

Modes supported:

  • Interactive (default).
  • Dump (--dump).

Screen

 Offset                  Binary data                      Text representation
 __^___    __________________^__________________________    ______^_______
/      \  /                                             \  /              \
Offset h   0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
     150  00 00 00 00 00 00 00 00 00 20 00 00 08 00 00 00  ......... ......
 Hex | 400 B | 400 B - 800 B | 36.9004% - 73.8007%
  ^     ^     \_____ _____/   \________ ________/
  |     |           v                  v
  |     |           |                  +- Start-end view position in pourcentage
  |     |           +- Start-end view buffer position
  |     +- View buffer size
  +- Current data mode

Supported Platforms

Confirmed to work on:

  • Windows XP (x86-omf builds)
  • Windows Vista+ (x86-mscoff and x86-64)
  • Linux (glibc and musl)