From fc1dc11edf54c66eb94de43a68794244b9160f28 Mon Sep 17 00:00:00 2001 From: moculus Date: Fri, 6 Mar 2009 15:20:53 +0000 Subject: [PATCH] hex header... YES --HG-- branch : pmacs2 --- mode/hex.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 = {}