diff --git a/mode/hex.py b/mode/hex.py index ede1f60..8e99666 100644 --- a/mode/hex.py +++ b/mode/hex.py @@ -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 = {}