• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2011.09/share/doc/arm-arm-none-eabi/html/gdb/
1<html lang="en">
2<head>
3<title>Readline Killing Commands - Debugging with GDB</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Debugging with GDB">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Readline-Interaction.html#Readline-Interaction" title="Readline Interaction">
9<link rel="prev" href="Readline-Movement-Commands.html#Readline-Movement-Commands" title="Readline Movement Commands">
10<link rel="next" href="Readline-Arguments.html#Readline-Arguments" title="Readline Arguments">
11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12<!--
13Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
141998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
15Free Software Foundation, Inc.
16
17Permission is granted to copy, distribute and/or modify this document
18under the terms of the GNU Free Documentation License, Version 1.3 or
19any later version published by the Free Software Foundation; with the
20Invariant Sections being ``Free Software'' and ``Free Software Needs
21Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
22and with the Back-Cover Texts as in (a) below.
23
24(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
25this GNU Manual.  Buying copies from GNU Press supports the FSF in
26developing GNU and promoting software freedom.''-->
27<meta http-equiv="Content-Style-Type" content="text/css">
28<style type="text/css"><!--
29  pre.display { font-family:inherit }
30  pre.format  { font-family:inherit }
31  pre.smalldisplay { font-family:inherit; font-size:smaller }
32  pre.smallformat  { font-family:inherit; font-size:smaller }
33  pre.smallexample { font-size:smaller }
34  pre.smalllisp    { font-size:smaller }
35  span.sc    { font-variant:small-caps }
36  span.roman { font-family:serif; font-weight:normal; } 
37  span.sansserif { font-family:sans-serif; font-weight:normal; } 
38--></style>
39<link rel="stylesheet" type="text/css" href="../cs.css">
40</head>
41<body>
42<div class="node">
43<a name="Readline-Killing-Commands"></a>
44<p>
45Next:&nbsp;<a rel="next" accesskey="n" href="Readline-Arguments.html#Readline-Arguments">Readline Arguments</a>,
46Previous:&nbsp;<a rel="previous" accesskey="p" href="Readline-Movement-Commands.html#Readline-Movement-Commands">Readline Movement Commands</a>,
47Up:&nbsp;<a rel="up" accesskey="u" href="Readline-Interaction.html#Readline-Interaction">Readline Interaction</a>
48<hr>
49</div>
50
51<h4 class="subsection">31.2.3 Readline Killing Commands</h4>
52
53<p><a name="index-killing-text-2190"></a><a name="index-yanking-text-2191"></a>
54<dfn>Killing</dfn> text means to delete the text from the line, but to save
55it away for later use, usually by <dfn>yanking</dfn> (re-inserting)
56it back into the line. 
57(`Cut' and `paste' are more recent jargon for `kill' and `yank'.)
58
59   <p>If the description for a command says that it `kills' text, then you can
60be sure that you can get the text back in a different (or the same)
61place later.
62
63   <p>When you use a kill command, the text is saved in a <dfn>kill-ring</dfn>. 
64Any number of consecutive kills save all of the killed text together, so
65that when you yank it back, you get it all.  The kill
66ring is not line specific; the text that you killed on a previously
67typed line is available to be yanked back later, when you are typing
68another line. 
69<a name="index-kill-ring-2192"></a>
70Here is the list of commands for killing text.
71
72     <dl>
73<dt><kbd>C-k</kbd><dd>Kill the text from the current cursor position to the end of the line.
74
75     <br><dt><kbd>M-d</kbd><dd>Kill from the cursor to the end of the current word, or, if between
76words, to the end of the next word. 
77Word boundaries are the same as those used by <kbd>M-f</kbd>.
78
79     <br><dt><kbd>M-&lt;DEL&gt;</kbd><dd>Kill from the cursor the start of the current word, or, if between
80words, to the start of the previous word. 
81Word boundaries are the same as those used by <kbd>M-b</kbd>.
82
83     <br><dt><kbd>C-w</kbd><dd>Kill from the cursor to the previous whitespace.  This is different than
84<kbd>M-&lt;DEL&gt;</kbd> because the word boundaries differ.
85
86   </dl>
87
88   <p>Here is how to <dfn>yank</dfn> the text back into the line.  Yanking
89means to copy the most-recently-killed text from the kill buffer.
90
91     <dl>
92<dt><kbd>C-y</kbd><dd>Yank the most recently killed text back into the buffer at the cursor.
93
94     <br><dt><kbd>M-y</kbd><dd>Rotate the kill-ring, and yank the new top.  You can only do this if
95the prior command is <kbd>C-y</kbd> or <kbd>M-y</kbd>. 
96</dl>
97
98   </body></html>
99
100