Next Previous Table of Contents
The figure below shows khexedit in a fairly default setup. As can be seen the editor area is divided into three components. The name of the area below the editor area and above the status bar is called the Conversion Field. This area displays, using various representation, the data value at the cursor position.
The primary view can display data using one out of four available mode: Hexadecimal, Octal, Binary and Text Only. If the latter is selected the secondary view is automatically hidden.
The secondary view will always display a "Text only" replica of what
is displayed in the primary view. This field can be hidden if selected from
View menu ("Show text field"). Since not every character code
can be displayed as a printable character, the text view takes care of
transforming the code into a symbol that can be displayed. The non-printable
character codes are shown as a red dot in the editor
image). The character code can its color can be
selected in the
Customize dialog box.
The left section of the status bar contains a progress indicator. This
indicator is used to inform the user what is taking place for certain
operations. It displays the kind of operation by printing a text string
in the bar (eg,
reading...) and a progress value.
Any operation that uses the indicator can be interrupted by the user. This is done by one of the following operations:
Cancel Operation" toolbar button.
Cancel Operation" entry in the
The user will then be prompted to confirm the cancellation.
KHexEdit supports Drag and Drop. This means that you can drag and drop files from the Desktop or kfm or some remote site that you have open in one of kfm's windows on to KHexEdit.
If you have multiple KHexEdit windows open you can drag the active document from one window to the other. Start the drag by clicking on the leftmost icon in the toolbar with the left mouse button.
KHexEdit recognizes a few command line arguments. The arguments must be arranged as described below: as follows:
khexedit <options> <files>
Moves the cursor in the active document to
offset. The offset
value can be decimal or hexadecimal. A hexadecimal value is recognized by
0x sign in front (eg,
is not required if the string contains the hexadecimal characters a..f,A..F.
This can be one or more files. You can use wildcards if that is supported
the the shell interpreter you use. A file can be specified with the
file:/path". The latter refers to a local file and one can simply
FQDN is shorthand for
"Fully Qualified Domain Name".
You can open and save files on the Internet. Try the the following at the command line prompt to see an example of this.
% khexedit http://www.kde.org/logotp3.gif
(note: this web page contents might change so the specification can be outdated)
Documents entry in the menubar stores a list of open
documents. The displayed document is defined as the active document.
A document becomes active when it has been picked from the document list.
There is no limit on how many documents there can be in the list. The
first 9 documents can be accessed with the keyboard shortcut
<Ctrl>+<Number> making it easy to switch between
KHexEdit can copy data as pure binary data or as formatted text. The formatted text is stored as seen on screen. Binary data is sent to the clipboard as a MIME message using base64 encoding. KHexEdit can decode this kind of message making it possible to copy and paste data between KHexEdit editor windows or documents. Note that if you paste the MIME encoded clipboard data into an external editor (such as kwrite or Emacs) you will see the MIME message and not the binary data. It might be better to copy as text in this case.
A copy operation can take place either automatically each time a selection has been made or delayed until the user decides to do so (Ctrl-C from the keyboard or from the Edit pulldown menu). The latter mode has the advantage to avoid unnecessary copy operations which can take time on large selections. This behavior is an option and can be selected in the option dialog box.
KHexEdit honors the following key bindings.
Toggle the cursor between primary and secondary data area
Toggle between Insert and Overwrite mode
Move the cursor one character leftwards
Move the cursor one character rightwards
Move the cursor one line upwards
Move the cursor one line downwards
Move the cursor one page upwards
Move the cursor one page downwards
Delete the character to the left of the cursor
Move the cursor to the beginning of the line
Move the cursor to the end of the line
Move the cursor to the end of the document
Move the cursor to the start of the document
Move the cursor to the previous character (eg, previous bit)
Move the cursor to the next character (eg, next bit)
Delete the character to the right of the cursor
Mark text one character leftwards
Mark text one character rightwards
Mark text one line downwards
Mark text one line upwards
Mark text to end of line
Mark text to start of line
Mark text one page up
Mark text one page down
Mark text to end of document
Mark text to start start of document
Create a new empty unnamed document
Open the file manager
Open the file manager for inserting a file
Save active document
Rename active document
Close active document
Print active document
Undo edit operation
Redo edit operation
Copy selected data to clipboard.
Paste clipboard contents to active document
Delete the marked text, copy to clipboard
Go to a given offset
Find and replace
Add a bookmark
Replace a bookmark
Remove a bookmark
Goto a bookmark
Raise previous document
Raise next document
Next Previous Table of Contents