Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 3e60ff9d4d6f58c8fbd17208f14089fa > files > 134

octave-doc-3.2.3-3mdv2010.0.i586.rpm

<html lang="en">
<head>
<title>Cursor Motion - Untitled</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Untitled">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Command-Line-Editing.html#Command-Line-Editing" title="Command Line Editing">
<link rel="next" href="Killing-and-Yanking.html#Killing-and-Yanking" title="Killing and Yanking">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Cursor-Motion"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Killing-and-Yanking.html#Killing-and-Yanking">Killing and Yanking</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Command-Line-Editing.html#Command-Line-Editing">Command Line Editing</a>
<hr>
</div>

<h4 class="subsection">2.4.1 Cursor Motion</h4>

<p>The following commands allow you to position the cursor.

     <dl>
<dt><kbd>C-b</kbd><dd>Move back one character.

     <br><dt><kbd>C-f</kbd><dd>Move forward one character.

     <br><dt><kbd>&lt;DEL&gt;</kbd><dd>Delete the character to the left of the cursor.

     <br><dt><kbd>C-d</kbd><dd>Delete the character underneath the cursor.

     <br><dt><kbd>M-f</kbd><dd>Move forward a word.

     <br><dt><kbd>M-b</kbd><dd>Move backward a word.

     <br><dt><kbd>C-a</kbd><dd>Move to the start of the line.

     <br><dt><kbd>C-e</kbd><dd>Move to the end of the line.

     <br><dt><kbd>C-l</kbd><dd>Clear the screen, reprinting the current line at the top.

     <br><dt><kbd>C-_</kbd><dt><kbd>C-/</kbd><dd>Undo the last action.  You can undo all the way back to an empty line.

     <br><dt><kbd>M-r</kbd><dd>Undo all changes made to this line.  This is like typing the `undo'
command enough times to get back to the beginning. 
</dl>

   <p>The above table describes the most basic possible keystrokes that you need
in order to do editing of the input line.  On most terminals, you can
also use the left and right arrow keys in place of <kbd>C-f</kbd> and <kbd>C-b</kbd>
to move forward and backward.

   <p>Notice how <kbd>C-f</kbd> moves forward a character, while <kbd>M-f</kbd> moves
forward a word.  It is a loose convention that control keystrokes
operate on characters while meta keystrokes operate on words.

   <p><a name="index-clearing-the-screen-106"></a>
The function <code>clc</code> will allow you to clear the screen from within
Octave programs.

<!-- sysdep.cc -->
   <p><a name="doc_002dclc"></a>

<div class="defun">
&mdash; Built-in Function:  <b>clc</b> ()<var><a name="index-clc-107"></a></var><br>
&mdash; Built-in Function:  <b>home</b> ()<var><a name="index-home-108"></a></var><br>
<blockquote><p>Clear the terminal screen and move the cursor to the upper left corner. 
</p></blockquote></div>

   </body></html>