Skip to content

Commit

Permalink
Make the hex view's cursor position more visible
Browse files Browse the repository at this point in the history
Usually, inside the hex view of a packet, the user will see the cursor,
then a colored layer representing the current "field", then another
colored layer representing the next level up in the packet
structure. Termshark's themes make the cursor easy to spot within the
boundaries of the current packet field in the UI. But sometimes the PDML
returned by tshark does not cover the entirety of the packet's
bytes. That means that termshark's cursor can be moved to a spot outside
the bounds of the last highlighted layer, and it's not always to easy to
spot. This is a small tweak to make the byte under the cursor show up
bold.
  • Loading branch information
gcla committed May 30, 2022
1 parent 4aac0dc commit 4477425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/palette.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ func SetupColors() {
"progress-default": gowid.MakeStyledPaletteEntry(dfg("progress-default"), dbg("progress-default"), gowid.StyleBold),
"progress-complete": gowid.MakeStyleMod(gowid.MakePaletteRef("progress-default"), gowid.MakeBackground(dbg("progress-complete"))),
"progress-spinner": gowid.MakePaletteEntry(dfg("spinner"), dbg("spinner")),
"hex-byte-selected": gowid.MakePaletteEntry(dfg("hex-byte-selected"), dbg("hex-byte-selected")),
"hex-byte-unselected": gowid.MakePaletteEntry(dfg("hex-byte-unselected"), dbg("hex-byte-unselected")),
"hex-byte-selected": gowid.MakeStyledPaletteEntry(dfg("hex-byte-selected"), dbg("hex-byte-selected"), gowid.StyleBold),
"hex-byte-unselected": gowid.MakeStyledPaletteEntry(dfg("hex-byte-unselected"), dbg("hex-byte-unselected"), gowid.StyleBold),
"hex-field-selected": gowid.MakePaletteEntry(dfg("hex-field-selected"), dbg("hex-field-selected")),
"hex-field-unselected": gowid.MakePaletteEntry(dfg("hex-field-unselected"), dbg("hex-field-unselected")),
"hex-layer-selected": gowid.MakePaletteEntry(dfg("hex-layer-selected"), dbg("hex-layer-selected")),
Expand Down

0 comments on commit 4477425

Please # to comment.