02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

the host stty command (which you can call from the Tcl interpreter; see 5.7 Tcl: Shell<br />

Interpretation, p.198). They must be single characters, usually control characters;<br />

Table 5-15 includes these characters, but shows only common default values.<br />

The ESC key switches the shell from normal input mode to edit mode. The history<br />

and editing commands in Table 5-15 are available in edit mode.<br />

Some line-editing commands switch the line editor to insert mode until an ESC is<br />

typed (as in vi) or until an ENTER gives the line to one of the shell interpreters.<br />

ENTER always gives the line as input to the current shell interpreter, from either<br />

input or edit mode.<br />

In input mode, the shell history command h( )(described in System Information,<br />

p.160) displays up to 20 of the most recent commands typed to the shell; older<br />

commands are lost as new ones are entered. You can change the number of<br />

commands kept in history by running h( ) with a numeric argument. To locate a<br />

line entered previously, press ESC followed by one of the search commands listed<br />

in Table 5-15; you can then edit and execute the line with one of the commands<br />

from Table 5-15.<br />

NOTE: Not all the editing commands that take counts in vi do so in the shell’s line<br />

editor. For example, ni does not repeat the inserted text n times.<br />

Table 5-15<br />

Shell Line-Editing Commands<br />

Basic Control<br />

h [size]<br />

ESC<br />

ENTER<br />

CTRL+D<br />

[tab]<br />

CTRL+H<br />

CTRL+U<br />

CTRL+L<br />

Display shell history if no argument; otherwise set history buffer to<br />

size.<br />

Switch to line-editing mode from regular input mode.<br />

Give line to shell and leave edit mode.<br />

Complete symbol or path name (edit mode), display synopsis of<br />

current symbol (symbol must be complete, followed by a space), or<br />

end shell session (if the command line is empty).<br />

Complete symbol or path name (edit mode).<br />

Delete a character (backspace).<br />

Delete entire line (edit mode).<br />

Redraw line (works in edit mode).<br />

194

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!