hex header... YES

--HG--
branch : pmacs2
This commit is contained in:
moculus 2009-03-06 15:20:53 +00:00
parent 1adb483649
commit fc1dc11edf
1 changed files with 8 additions and 0 deletions

View File

@ -231,6 +231,14 @@ class Hex(mode.Fundamental):
GotoAddress, HexSetByteOrder, HexToggleSymbolic,
HexOverwriteCharSpace, HexOverwriteCharTab,
HexOverwriteCharNewline, HexGotoBeginning, HexGotoEnd]
header = 1
header_size = 1
def get_header(self):
s = ' 87654321 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff' \
'%*s0123456789abcdef ' % (self.window.width - 48, '')
return [RenderString(s=s, attrs=color.build('red', 'default'))]
def __init__(self, w):
mode.Fundamental.__init__(self, w)
self.bindings = {}