# Editors and Viewers

Terminaux provides a way to edit or view a hexadecimal representation of bytes or lines of text in an interactive way without any hassle. The following classes are available for you to use:

***

## <mark style="color:$primary;">Hex editor and viewer</mark>

<figure><img src="https://1870312457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG0KrE9Uk2AiblqjWtpAo%2Fuploads%2FwrRLInNnlhutTPbkiSOH%2Fimage.png?alt=media&#x26;token=859a21ec-311e-4283-988a-3fdc95d32c1f" alt=""><figcaption></figcaption></figure>

The interactive hex editor, `HexEditInteractive`, allows you to edit either a file or a byte array byte by byte, while giving you basic editing abilities, such as replacing all occurrences of a byte value with another byte value, finding a byte value or a group of it, and so on. This is all done with the help of the [screen feature](https://aptivi.gitbook.io/aptivi/terminaux-manual/usage/console-tools/textual-ui/console-screen) in Terminaux to allow visual editing.

In the other hand, the interactive hex viewer only allows you to view a hexadecimal representation of each byte without any editing functionality. This allows quick viewing of bytes in hexadecimal.

{% hint style="info" %}
You can consult the list of keybindings through the `K` key.
{% endhint %}

***

## <mark style="color:$primary;">Text editor and viewer</mark>

<figure><img src="https://1870312457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG0KrE9Uk2AiblqjWtpAo%2Fuploads%2Fhn23jYYo89bjhhFHRpdK%2Fimage.png?alt=media&#x26;token=1de9ba71-bdf7-46d5-b35f-53fe1cd040e2" alt=""><figcaption></figcaption></figure>

The interactive text editor, `TextEditInteractive`, allows you to seamlessly and interactively edit multi-line text. Inspired by VIM, the popular extensible terminal text editor, this text editor features two modes:

* Normal mode: You can perform some basic operations, such as finding and replacing, inserting a new line, removing a line, deleting a character, and entering the Insertion mode.
* Insertion mode: You can write your own text wherever you want

In the other hand, the interactive text viewer only allows you to view what's written and to search for a portion of the text.

{% hint style="info" %}
You can consult the list of keybindings through the `K` key.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aptivi.gitbook.io/aptivi/terminaux-manual/usage/input-reader/other-input/editors-and-viewers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
