Expand description

A simple HexView for cursive.

It is meant to display a data of u8 and format them like e.g. hexdump does. You can interact with the view with your keyboard. Currently the following keys are implemented:

KeyAction
Move the cursor to the next, left nibble. If already on the left edge of the view, the event will be “ignored”, which means the outer view will handle the event (e.g. focus the view next to this one)
Move the cursor to the next, right nibble. If already on the right edge of the view, the event will be “ignored”, which means the outer view will handle the event (e.g. focus the view next to this one)
Move the cursor to the previous line. If already on the top edge of the view, the event will be “ignored”, which means the outer view will handle the event (e.g. focus the view next to this one)
Move the cursor to the next line. If already on the bottom edge of the,view, the event will be “ignored”, which means the outer view will handle the event (e.g. focus the view next to this one)
HomeMove the cursor to the beginning of the current line.
EndMove the cursor to the end of the current line.
Shift + HomeMove the cursor to position (0 ,0) which means to the beginning of the view.
Shift + EndMove the cursor to the last nibble in the view.
+Increase the amount of data by one byte. It will be filled up with 0.
-Decrease the amount of data by one. Any data that will leave the viewable area, will be permanantly lost.
0-9, a-fSet the nibble under the cursor to the corresponding hex value. Note, that this is only available in the editable state, see DisplayState and set_display_state

Structs

Hexadecimal viewer.

Controls the visual output of the HexView struct.

Enums

Controls the possible interactions with a HexView.