This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
inventor2514's profile picture

Hex Editor

Started by inventor2514, 27 June 2012 - 10:47 PM
inventor2514 #1
Posted 28 June 2012 - 12:47 AM
Are you tired of programming in text? Do you like to save numerical data in ASCII format? Would you like to confuse your friends with seemingly meaningless "text files"? I you answered yes to any of these questions, then you need a hex editor.

Anyway, I though it would be fun to make a hex editor. Use left Ctrl to save and left Shift to quit; the rest of the controls are as expected.
I hope someone finds this useful. Suggestions and constructive criticism are appreciated.

Screenshot
http://www.freeimagehosting.net/vqaom

Code
http://pastebin.com/SpySi6uB

EDIT: Updated to make the cursor more convenient.
EDIT: Added a status bar (see screenshot)
timboiscool #2
Posted 11 July 2012 - 11:45 AM
Nice but… uhhh…. well what do you want to edit?? And maybe you can make a line that shows the decoded stuff on the right like a real hexeditor??
Well good job!