The R Project SVN R

Rev

Rev 43117 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9859 ripley 1
README for Rterm.exe
2
====================
3
 
4
Rterm.exe can be used in three distinct modes:
5
 
6
1) Interactively in an MSDOS / Commands window.
10255 ripley 7
2) In batch mode by redirecting its input from a file or pipe.
77228 maechler 8
3) As a no-echo process for ESS mode in NTEmacs with flag --ess.
9859 ripley 9
 
10
Its purpose is to provide something similar to the main Unix interface
25246 ripley 11
for R, including a batch capability.  The command-line arguments are
12
the same as those for RGui.exe and are documented in `An Introduction
13
to R' in the section `Invoking R under Windows' (--mdi and --sdi are
14
accepted but do nothing).  Batch use is covered in the rw-FAQ Q2.10.
9859 ripley 15
 
16
In interactive use the interpreter can be interrupted by Ctrl-C or
17
Ctrl-Break.  Input is interpreted as-is except for the keys
18
interpreted by getline (see below) and that special characters
19
can be entered by Alt+numerical-key-pad sequences of up to 3 characters,
20
so Alt+123 and Alt+72 give {H, for example.
21
 
22
Command-line editing and history in interactive use
23
---------------------------------------------------
24
 
25
Input editing handles a single line and so scrolls long lines left and
26
right on the same line.  Until the user presses the RETURN key they
9862 ripley 27
can use Emacs-style line editing commands and can traverse the history
9859 ripley 28
of lines previously typed.
29
 
30
Entering printable keys generally inserts new text into the buffer (unless
31
in overwrite mode, see below).  Other special keys can be used to modify
32
the text in the buffer.  In the description of the keys below, ^n means
33
Control-n, or holding the CONTROL key down while pressing "n".  Errors
38902 ripley 34
will ring the terminal bell.  A 'word' is delimited by spaces.
9859 ripley 35
 
9862 ripley 36
left/right, ^F/^B   : Move cursor forward/backward one character.
37
up/down,    ^P/^N   : Move to previous/next item on history list.
38
Home, ^A	: Move cursor to beginning of the line.
39
End,  ^E 	: Move cursor to end of the line.
9859 ripley 40
ESC-F	: Move cursor forward one word.
41
ESC-B   : Move cursor backward one word.
9862 ripley 42
^D, DEL	: Delete the character under the cursor.
43
^H	: Delete the character to the left of the cursor.
9859 ripley 44
^K	: Kill from the cursor to the end of line.
45
^L	: Redraw current line.
46
^O	: Toggle overwrite/insert mode. Initially in insert mode. Text
47
	  added in overwrite mode (including yanks) overwrite
48
	  existing text, while insert mode does not overwrite.
49
^R/^S   : Perform incremental reverse/forward search for string on
50
	  the history list.  Typing normal characters adds to the current
51
	  search string and searches for a match. Typing ^R/^S marks
52
	  the start of a new search, and moves on to the next match.
53
	  Typing ^H or DEL deletes the last character from the search 
54
	  string, and searches from the starting location of the last search.  
55
	  Therefore, repeated DEL's appear to unwind to the match nearest 
56
	  the point at which the last ^R or ^S was typed.  If DEL is 
57
	  repeated until the search string is empty the search location 
58
	  begins from the start of the history list.  Typing ESC or 
59
	  any other editing character accepts the current match and 
60
	  loads it into the buffer, terminating the search.
9862 ripley 61
^T	: Transpose the characters under and to the left of the cursor.
9859 ripley 62
^U      : Deletes the entire line
10255 ripley 63
^W      : Deletes the previous word
9859 ripley 64
^Y	: Yank previously killed text back at current location.  Note that
65
	  this will overwrite or insert, depending on the current mode.
41096 ripley 66
TAB	: Within quotes, completes the current word as a file name,
67
	  otherwise as an R object name.  Completion is does as far as 
41020 ripley 68
	  can be done unambiguously.  A second press shows alternative 
43117 ripley 69
	  completions.  However, if environment variable R_COMPLETION is
70
	  set to FALSE, this advances to the next tab stop (set at every 
71
	  8th column). 
9859 ripley 72
NL, CR  : returns current buffer to the program.
73