Basics
In this section, I will introduce the basics of the TUI of tracexec.
Navigation
By default, the TUI comes with two panes: the Events pane and the Terminal pane.
The Terminal pane is focused upon launch but you can configure tracexec to focus the Events pane with a configuration file.
Terminal Pane
If you launch the TUI to trace a shell, you can type commands in the Terminal pane and tracexec will show the exec events in the Events pane.
If you launch the TUI to trace a program, you can interact with it in the Terminal pane.
Use Ctrl+U shortcut to enter scrollback mode, in which you can view the history of the terminal pane. Use ↑/↓/PgUp/PgDn/Home/End to navigate through the scroll buffer. Use Ctrl+U shortcut again to exit the scrollback mode.
Events Pane
Switch to the Events pane by shortcut Ctrl+S.
- Use ↑/↓ to scroll up/down the events list.
- Use PgUp/PgDn/Ctrl+↑/Ctrl+↓ to scroll faster.
- Use Home/End to jump to the start and the end of the list.
- Use ←/→ to scroll left/right in the events list.
- Use Ctrl+←/Ctrl+→ to scroll faster.
- Use Shift+Home/Shift+End to jump to the left end and the right end of the view.
To locate events by their text, use Ctrl+F. See Search for matching rules and result navigation.
How to Exit Vim Tracexec
When the Events pane is focused, press Q to exit.
You can switch to the Events pane by shortcut Ctrl+S if the Terminal pane is focused.
If there are still tracees running in the terminal pane, tracexec will wait for them after the TUI is closed. Press Ctrl+C to terminate them.
Layout
When the Events pane is focused,
- Press Alt+L to change between vertical and horizontal layout.
- Hold G/S to grow/shrink the
Eventspane.