TEMU CLI Terminal

The debugger includes an interactive TEMU command terminal for running emulator commands without leaving the GUI. The dock is labelled Terminal.

Opening the Terminal

The Terminal dock is placed in the bottom dock area by default and is tabbed with Memory, Registers, and Object Properties.

TEMU CLI terminal
Figure 1. TEMU CLI terminal dock

Connection State

The terminal is only interactive when the TEMU service is available.

  • Before a connection is ready, the dock shows service-status messages and input is disabled.

  • After a successful connection, the terminal prints a connected message and shows the prompt temu >.

  • On disconnect or connection failure, the terminal prints the reason and disables further input until the service becomes available again.

Running Commands

Type a command after the prompt and press Enter. The debugger sends the command to the TEMU service and appends the result to the terminal output before printing a new prompt.

The prompt color reflects the last outcome:

  • green after a successful command result,

  • red after an error or failing result.

A current limitation of this Terminal is that results are not streamed to this terminal but will appear in the real emulators terminal.

The run command, with no time=*, will continue running the software indefinitely and can be stopped using the command stop.

Completion and Editing

The terminal supports interactive completion:

  • Typing starts a delayed completion request.

  • Press Tab to request completion immediately.

  • When the completion popup is visible, use the arrow keys to move through the suggestions and press Enter to accept one.

  • Press Esc to close the completion popup.

The widget protects the prompt area, so editing is limited to the current input line after temu >.

Command History

The terminal keeps a local command history for the current session.

  • Press Up to move to an older command.

  • Press Down to move toward newer commands or back to the unfinished draft you were typing.

This is useful when repeating the same inspection command with only minor changes.

Tips

  • Use the terminal for quick one-off TEMU commands while keeping the graphical views open beside it.

  • If you rely on scripted breakpoint actions, see Scripting for the emulator-side scripting model.