### 25.3 TUI Single Key Mode ¶

The TUI also provides a SingleKey mode, which binds several frequently used GDB commands to single keys. Type `C-x s` to switch into this mode, where the following key bindings are used:

`c` ¶

  continue

`C` ¶

  reverse-continue

`d` ¶

  down

`f` ¶

  finish

`F` ¶

  reverse-finish

`n` ¶

  next

`N` ¶

  reverse-next

`o` ¶

  nexti. The shortcut letter ‘`o`’ stands for “step Over”.

`O` ¶

  reverse-nexti

`q` ¶

  exit the SingleKey mode.

`r` ¶

  run

`s` ¶

  step

`S` ¶

  reverse-step

`i` ¶

  stepi. The shortcut letter ‘`i`’ stands for “step Into”.

`I` ¶

  reverse-stepi

`u` ¶

  up

`v` ¶

  info locals

`w` ¶

  where

Other keys temporarily switch to the GDB command prompt. The key that was pressed is inserted in the editing buffer so that it is possible to type most GDB commands without interaction with the TUI SingleKey mode. Once the command is entered the TUI SingleKey mode is restored. The only way to permanently leave this mode is by typing `q` or `C-x s`.

If GDB was built with Readline 8.0 or later, the TUI SingleKey keymap will be named ‘`SingleKey`’. This can be used in `.inputrc` to add additional bindings to this keymap.