1.5.2 Editing a command line

Before the sample session, we briefly present how to edit a command line. You can enter a command line by typing after the prompt or clicking with the mouse on a part on a window and copy it at the prompt in the Scilab window. The pointer may be moved using the directionnal arrows ( ). For Emacs customers, the usual Emacs commands are at your disposal for modifying a command (Ctrl-chr means hold the CONTROL key while typing the character chr), for example:

• Ctrl-p recall previous line
• Ctrl-n recall next line
• Ctrl-b move backward one character
• Ctrl-f move forward one character
• Delete delete previous character
• Ctrl-h delete previous character
• Ctrl-d delete one character (at cursor)
• Ctrl-a move to beginning of line
• Ctrl-e move to end of line
• Ctrl-k delete to the end of the line
• Ctrl-u cancel current line
• Ctrl-y yank the text previously deleted
• !prev recall the last command line which begins by prev
• Ctrl-c interrupt Scilab and pause after carriage return. Clicking on the Control/stop button enters a Ctrl-c.

As said before you can also cut and paste using the mouse. This way will be useful if you type your commands in an editor. Another way to load'' files containing Scilab statements is available with the File/File Operations button.