> For the complete documentation index, see [llms.txt](https://carvera-community.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://carvera-community.gitbook.io/docs/controller/features/mdi-terminal.md).

# MDI Terminal

The **MDI** (Manual Data Input) area is where you send individual G-code lines or short programs to the machine without loading a full file.\
\
To access the MDI, click the button that says MDI in the bottom left corner of the first control screen. It will swap to saying File and show a terminal instead of the file contents

<figure><img src="/files/Y2Pj6mbTfuVvKCP5mnry" alt="" width="375"><figcaption><p>File View with arrow highlight MDI button</p></figcaption></figure>

<figure><img src="/files/SBtecoRAmQnQjCWcTVYR" alt="" width="375"><figcaption><p>MDI Terminal open</p></figcaption></figure>

## Sending commands

* **Ctrl+Enter** sends the contents of the MDI box to the machine.
* **Enter** alone adds a **new line** in the input (you can compose **multi-line** snippets before sending).
* You can send **several commands at once**; output shows **multi-line** responses in a readable way.

## History

* Press the **up arrow** in the MDI field to recall the **last sent** command.
* You can step through **multiple** previous commands with the **up** and **down** arrow keys.
* Double click a previous command in the terminal history to copy it to the current MDI input box

## Keyboard shortcuts

* **Ctrl+,** — open **Settings**.
* **Ctrl+M** — focus / jump to **MDI** quickly.

## Focus and jogging

When the **MDI text box has focus**, **keyboard jogging** is disabled so typed keys do not move the machine. Click outside the field or use the UI to jog if needed.

## MDI while the program is running

Whether you can send MDI during playback depends on Controller setting **allow MDI while running**.

This setting is for advanced users and can lead to some machine problems if the wrong code is sent at the wrong time.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://carvera-community.gitbook.io/docs/controller/features/mdi-terminal.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
