Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

3 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Free Software" and "Free Software Needs
  8. Free Documentation", with the Front-Cover Texts being "A GNU Manual,"
  9. and with the Back-Cover Texts as in (a) below.
  10. (a) The FSF's Back-Cover Text is: "You are free to copy and modify
  11. this GNU Manual. Buying copies from GNU Press supports the FSF in
  12. developing GNU and promoting software freedom." -->
  13. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. <title>TUI Keys (Debugging with GDB)</title>
  17. <meta name="description" content="TUI Keys (Debugging with GDB)">
  18. <meta name="keywords" content="TUI Keys (Debugging with GDB)">
  19. <meta name="resource-type" content="document">
  20. <meta name="distribution" content="global">
  21. <meta name="Generator" content="makeinfo">
  22. <link href="index.html#Top" rel="start" title="Top">
  23. <link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
  24. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  25. <link href="TUI.html#TUI" rel="up" title="TUI">
  26. <link href="TUI-Single-Key-Mode.html#TUI-Single-Key-Mode" rel="next" title="TUI Single Key Mode">
  27. <link href="TUI-Overview.html#TUI-Overview" rel="prev" title="TUI Overview">
  28. <style type="text/css">
  29. <!--
  30. a.summary-letter {text-decoration: none}
  31. blockquote.indentedblock {margin-right: 0em}
  32. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  33. blockquote.smallquotation {font-size: smaller}
  34. div.display {margin-left: 3.2em}
  35. div.example {margin-left: 3.2em}
  36. div.lisp {margin-left: 3.2em}
  37. div.smalldisplay {margin-left: 3.2em}
  38. div.smallexample {margin-left: 3.2em}
  39. div.smalllisp {margin-left: 3.2em}
  40. kbd {font-style: oblique}
  41. pre.display {font-family: inherit}
  42. pre.format {font-family: inherit}
  43. pre.menu-comment {font-family: serif}
  44. pre.menu-preformatted {font-family: serif}
  45. pre.smalldisplay {font-family: inherit; font-size: smaller}
  46. pre.smallexample {font-size: smaller}
  47. pre.smallformat {font-family: inherit; font-size: smaller}
  48. pre.smalllisp {font-size: smaller}
  49. span.nolinebreak {white-space: nowrap}
  50. span.roman {font-family: initial; font-weight: normal}
  51. span.sansserif {font-family: sans-serif; font-weight: normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en">
  57. <a name="TUI-Keys"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="TUI-Single-Key-Mode.html#TUI-Single-Key-Mode" accesskey="n" rel="next">TUI Single Key Mode</a>, Previous: <a href="TUI-Overview.html#TUI-Overview" accesskey="p" rel="prev">TUI Overview</a>, Up: <a href="TUI.html#TUI" accesskey="u" rel="up">TUI</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
  61. </div>
  62. <hr>
  63. <a name="TUI-Key-Bindings"></a>
  64. <h3 class="section">25.2 TUI Key Bindings</h3>
  65. <a name="index-TUI-key-bindings"></a>
  66. <p>The TUI installs several key bindings in the readline keymaps
  67. (see <a href="Command-Line-Editing.html#Command-Line-Editing">Command Line Editing</a>).
  68. The following key bindings are installed for both TUI mode and the
  69. <small>GDB</small> standard mode.
  70. </p>
  71. <dl compact="compact">
  72. <dd><a name="index-C_002dx-C_002da"></a>
  73. </dd>
  74. <dt><kbd>C-x C-a</kbd></dt>
  75. <dd><a name="index-C_002dx-a"></a>
  76. </dd>
  77. <dt><kbd>C-x a</kbd></dt>
  78. <dd><a name="index-C_002dx-A"></a>
  79. </dd>
  80. <dt><kbd>C-x A</kbd></dt>
  81. <dd><p>Enter or leave the TUI mode. When leaving the TUI mode,
  82. the curses window management stops and <small>GDB</small> operates using
  83. its standard mode, writing on the terminal directly. When reentering
  84. the TUI mode, control is given back to the curses windows.
  85. The screen is then refreshed.
  86. </p>
  87. <p>This key binding uses the bindable Readline function
  88. <code>tui-switch-mode</code>.
  89. </p>
  90. <a name="index-C_002dx-1"></a>
  91. </dd>
  92. <dt><kbd>C-x 1</kbd></dt>
  93. <dd><p>Use a TUI layout with only one window. The layout will
  94. either be &lsquo;<samp>source</samp>&rsquo; or &lsquo;<samp>assembly</samp>&rsquo;. When the TUI mode
  95. is not active, it will switch to the TUI mode.
  96. </p>
  97. <p>Think of this key binding as the Emacs <kbd>C-x 1</kbd> binding.
  98. </p>
  99. <p>This key binding uses the bindable Readline function
  100. <code>tui-delete-other-windows</code>.
  101. </p>
  102. <a name="index-C_002dx-2"></a>
  103. </dd>
  104. <dt><kbd>C-x 2</kbd></dt>
  105. <dd><p>Use a TUI layout with at least two windows. When the current
  106. layout already has two windows, the next layout with two windows is used.
  107. When a new layout is chosen, one window will always be common to the
  108. previous layout and the new one.
  109. </p>
  110. <p>Think of it as the Emacs <kbd>C-x 2</kbd> binding.
  111. </p>
  112. <p>This key binding uses the bindable Readline function
  113. <code>tui-change-windows</code>.
  114. </p>
  115. <a name="index-C_002dx-o"></a>
  116. </dd>
  117. <dt><kbd>C-x o</kbd></dt>
  118. <dd><p>Change the active window. The TUI associates several key bindings
  119. (like scrolling and arrow keys) with the active window. This command
  120. gives the focus to the next TUI window.
  121. </p>
  122. <p>Think of it as the Emacs <kbd>C-x o</kbd> binding.
  123. </p>
  124. <p>This key binding uses the bindable Readline function
  125. <code>tui-other-window</code>.
  126. </p>
  127. <a name="index-C_002dx-s"></a>
  128. </dd>
  129. <dt><kbd>C-x s</kbd></dt>
  130. <dd><p>Switch in and out of the TUI SingleKey mode that binds single
  131. keys to <small>GDB</small> commands (see <a href="TUI-Single-Key-Mode.html#TUI-Single-Key-Mode">TUI Single Key Mode</a>).
  132. </p>
  133. <p>This key binding uses the bindable Readline function
  134. <code>next-keymap</code>.
  135. </p></dd>
  136. </dl>
  137. <p>The following key bindings only work in the TUI mode:
  138. </p>
  139. <dl compact="compact">
  140. <dd><a name="index-PgUp"></a>
  141. </dd>
  142. <dt><tt class="key">PgUp</tt></dt>
  143. <dd><p>Scroll the active window one page up.
  144. </p>
  145. <a name="index-PgDn"></a>
  146. </dd>
  147. <dt><tt class="key">PgDn</tt></dt>
  148. <dd><p>Scroll the active window one page down.
  149. </p>
  150. <a name="index-Up"></a>
  151. </dd>
  152. <dt><tt class="key">Up</tt></dt>
  153. <dd><p>Scroll the active window one line up.
  154. </p>
  155. <a name="index-Down"></a>
  156. </dd>
  157. <dt><tt class="key">Down</tt></dt>
  158. <dd><p>Scroll the active window one line down.
  159. </p>
  160. <a name="index-Left"></a>
  161. </dd>
  162. <dt><tt class="key">Left</tt></dt>
  163. <dd><p>Scroll the active window one column left.
  164. </p>
  165. <a name="index-Right"></a>
  166. </dd>
  167. <dt><tt class="key">Right</tt></dt>
  168. <dd><p>Scroll the active window one column right.
  169. </p>
  170. <a name="index-C_002dL"></a>
  171. </dd>
  172. <dt><kbd>C-L</kbd></dt>
  173. <dd><p>Refresh the screen.
  174. </p></dd>
  175. </dl>
  176. <p>Because the arrow keys scroll the active window in the TUI mode, they
  177. are not available for their normal use by readline unless the command
  178. window has the focus. When another window is active, you must use
  179. other readline key bindings such as <kbd>C-p</kbd>, <kbd>C-n</kbd>, <kbd>C-b</kbd>
  180. and <kbd>C-f</kbd> to control the command window.
  181. </p>
  182. <hr>
  183. <div class="header">
  184. <p>
  185. Next: <a href="TUI-Single-Key-Mode.html#TUI-Single-Key-Mode" accesskey="n" rel="next">TUI Single Key Mode</a>, Previous: <a href="TUI-Overview.html#TUI-Overview" accesskey="p" rel="prev">TUI Overview</a>, Up: <a href="TUI.html#TUI" accesskey="u" rel="up">TUI</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
  186. </div>
  187. </body>
  188. </html>