annotate README.txt @ 115:0820c42ea23e

new README
author catherine@Elli.myhome.westell.com
date Sat, 25 Oct 2008 20:47:53 -0400
parents e3b8eaadea56
children 06f5eba2f588
rev   line source
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
1 `cmd2` is a tool for writing command-line interactive applications. It is based on the Python Standard Library's `cmd` module, and can be used anyplace `cmd` is used simply by importing `cmd2` instead.
71067a445663 added README
catherine@localhost
parents:
diff changeset
2
71067a445663 added README
catherine@localhost
parents:
diff changeset
3 `cmd2` provides the following features, in addition to those already existing in `cmd`:
71067a445663 added README
catherine@localhost
parents:
diff changeset
4
71067a445663 added README
catherine@localhost
parents:
diff changeset
5 - Searchable command history
71067a445663 added README
catherine@localhost
parents:
diff changeset
6 - Load commands from file, save to file, edit commands in file
71067a445663 added README
catherine@localhost
parents:
diff changeset
7 - Multi-line commands
71067a445663 added README
catherine@localhost
parents:
diff changeset
8 - Case-insensitive commands
54
a791d615545c oops, had to fix for redirect plus pipe
catherine@localhost
parents: 19
diff changeset
9 - Special-character shortcut commands (beyond cmd's `@` and `!`)
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
10 - Settable environment parameters
71067a445663 added README
catherine@localhost
parents:
diff changeset
11 - Parsing commands with flags
54
a791d615545c oops, had to fix for redirect plus pipe
catherine@localhost
parents: 19
diff changeset
12 - Redirection to file with `>`, `>>`; input from file with `<`
a791d615545c oops, had to fix for redirect plus pipe
catherine@localhost
parents: 19
diff changeset
13 - Bare '>', '>>' with no filename send output to paste buffer
a791d615545c oops, had to fix for redirect plus pipe
catherine@localhost
parents: 19
diff changeset
14 - Pipe output to shell commands with `|`
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
15
71067a445663 added README
catherine@localhost
parents:
diff changeset
16 Instructions for implementing each feature follow.
71067a445663 added README
catherine@localhost
parents:
diff changeset
17
71067a445663 added README
catherine@localhost
parents:
diff changeset
18 - Searchable command history
71067a445663 added README
catherine@localhost
parents:
diff changeset
19
71067a445663 added README
catherine@localhost
parents:
diff changeset
20 All commands will automatically be tracked in the session's history, unless the command is listed in Cmd's excludeFromHistory attribute.
71067a445663 added README
catherine@localhost
parents:
diff changeset
21 The history is accessed through the `history`, `list`, and `run` commands
71067a445663 added README
catherine@localhost
parents:
diff changeset
22 (and their abbreviations: `hi`, `li`, `l`, `r`).
71067a445663 added README
catherine@localhost
parents:
diff changeset
23 If you wish to exclude some of your custom commands from the history, append their names
71067a445663 added README
catherine@localhost
parents:
diff changeset
24 to the list at Cmd.ExcludeFromHistory.
71067a445663 added README
catherine@localhost
parents:
diff changeset
25
71067a445663 added README
catherine@localhost
parents:
diff changeset
26 - Load commands from file, save to file, edit commands in file
71067a445663 added README
catherine@localhost
parents:
diff changeset
27
71067a445663 added README
catherine@localhost
parents:
diff changeset
28 Type `help load`, `help save`, `help edit` for details.
71067a445663 added README
catherine@localhost
parents:
diff changeset
29
71067a445663 added README
catherine@localhost
parents:
diff changeset
30 - Multi-line commands
71067a445663 added README
catherine@localhost
parents:
diff changeset
31
71067a445663 added README
catherine@localhost
parents:
diff changeset
32 Any command accepts multi-line input when its name is listed in `Cmd.multilineCommands`.
71067a445663 added README
catherine@localhost
parents:
diff changeset
33 The program will keep expecting input until a line ends with any of the characters
71067a445663 added README
catherine@localhost
parents:
diff changeset
34 in `Cmd.terminators` . The default terminators are `;` and `/n` (empty newline).
71067a445663 added README
catherine@localhost
parents:
diff changeset
35
71067a445663 added README
catherine@localhost
parents:
diff changeset
36 - Case-insensitive commands
71067a445663 added README
catherine@localhost
parents:
diff changeset
37
71067a445663 added README
catherine@localhost
parents:
diff changeset
38 All commands are case-insensitive, unless `Cmd.caseInsensitive` is set to `False`.
71067a445663 added README
catherine@localhost
parents:
diff changeset
39
71067a445663 added README
catherine@localhost
parents:
diff changeset
40 - Special-character shortcut commands (beyond cmd's "@" and "!")
71067a445663 added README
catherine@localhost
parents:
diff changeset
41
71067a445663 added README
catherine@localhost
parents:
diff changeset
42 To create a single-character shortcut for a command, update `Cmd.shortcuts`.
71067a445663 added README
catherine@localhost
parents:
diff changeset
43
71067a445663 added README
catherine@localhost
parents:
diff changeset
44 - Settable environment parameters
71067a445663 added README
catherine@localhost
parents:
diff changeset
45
71067a445663 added README
catherine@localhost
parents:
diff changeset
46 To allow a user to change an environment parameter during program execution,
71067a445663 added README
catherine@localhost
parents:
diff changeset
47 append the parameter's name to `Cmd.settable`.
71067a445663 added README
catherine@localhost
parents:
diff changeset
48
13
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
49 - Parsing commands with `optparse` options (flags)
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
50
13
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
51 ::
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
52
17
f81b5670a713 more readme connection
catherine@localhost
parents: 16
diff changeset
53 @options([make_option('-m', '--myoption', action="store_true", help="all about my option")])
19
1899088dd95d more readme correction, now in function def
catherine@localhost
parents: 18
diff changeset
54 def do_myfunc(self, arg, opts):
18
b7489d3f838e more readme correction, now in function def
catherine@localhost
parents: 17
diff changeset
55 if opts.myoption:
b7489d3f838e more readme correction, now in function def
catherine@localhost
parents: 17
diff changeset
56 ...
13
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
57
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
58 See Python standard library's `optparse` documentation: http://docs.python.org/lib/optparse-defining-options.html
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
59
18
b7489d3f838e more readme correction, now in function def
catherine@localhost
parents: 17
diff changeset
60 - Catherine Devlin, http://catherinedevlin.blogspot.com
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
61
71067a445663 added README
catherine@localhost
parents:
diff changeset
62 cmd2 can be installed with `easy_install cmd2`
71067a445663 added README
catherine@localhost
parents:
diff changeset
63
16
0a316420636e correction in pypi page url in readme
catherine@localhost
parents: 13
diff changeset
64 Cheese Shop page: http://pypi.python.org/pypi/cmd2
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
65
112
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
66 Example cmd2 application (example/example.py) ::
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
67
112
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
68 '''A sample application for cmd2.'''
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
69
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
70 from cmd2 import Cmd, make_option, options, Cmd2TestCase
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
71 import unittest, optparse, sys
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
72
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
73 class CmdLineApp(Cmd):
71067a445663 added README
catherine@localhost
parents:
diff changeset
74 multilineCommands = ['orate']
71067a445663 added README
catherine@localhost
parents:
diff changeset
75 Cmd.shortcuts.update({'&': 'speak'})
71067a445663 added README
catherine@localhost
parents:
diff changeset
76 maxrepeats = 3
112
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
77 Cmd.settable.append('maxrepeats')
13
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
78
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
79 @options([make_option('-p', '--piglatin', action="store_true", help="atinLay"),
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
80 make_option('-s', '--shout', action="store_true", help="N00B EMULATION MODE"),
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
81 make_option('-r', '--repeat', type="int", help="output [n] times")
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
82 ])
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
83 def do_speak(self, arg, opts=None):
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
84 """Repeats what you tell me to."""
112
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
85 arg = ''.join(arg)
13
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
86 if opts.piglatin:
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
87 arg = '%s%say' % (arg[1:], arg[0])
13
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
88 if opts.shout:
112
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
89 arg = arg.upper()
13
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
90 repetitions = opts.repeat or 1
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
91 for i in range(min(repetitions, self.maxrepeats)):
71067a445663 added README
catherine@localhost
parents:
diff changeset
92 self.stdout.write(arg)
71067a445663 added README
catherine@localhost
parents:
diff changeset
93 self.stdout.write('\n')
112
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
94 # self.stdout.write is better than "print", because Cmd can be
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
95 # initialized with a non-standard output destination
112
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
96
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
97 do_say = do_speak # now "say" is a synonym for "speak"
71067a445663 added README
catherine@localhost
parents:
diff changeset
98 do_orate = do_speak # another synonym, but this one takes multi-line input
13
c6e8b645c0ab tweaking docs
catherine@localhost
parents: 10
diff changeset
99
112
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
100 class TestMyAppCase(Cmd2TestCase):
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
101 CmdApp = CmdLineApp
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
102 transcriptFileName = 'exampleSession.txt'
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
103
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
104 parser = optparse.OptionParser()
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
105 parser.add_option('-t', '--test', dest='unittests', action='store_true', default=False, help='Run unit test suite')
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
106 (callopts, callargs) = parser.parse_args()
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
107 if callopts.unittests:
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
108 sys.argv = [sys.argv[0]] # the --test argument upsets unittest.main()
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
109 unittest.main()
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
110 else:
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
111 app = CmdLineApp()
e3b8eaadea56 going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents: 110
diff changeset
112 app.cmdloop()
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
113
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
114 The following is a sample session running example.py.
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
115 Thanks to TestMyAppCase(Cmd2TestCase), it also serves as a test
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
116 suite for example.py when saved as `exampleSession.txt`.
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
117 Running `python example.py -t` will run all the commands in the
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
118 transcript against example.py, verifying that the output produced
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
119 is as expected.
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
120
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
121 exampleSession.txt::
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
122
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
123 (Cmd) help
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
124
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
125 Documented commands (type help <topic>):
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
126 ========================================
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
127 _load edit history li load r save set shortcuts speak
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
128 ed hi l list orate run say shell show
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
129
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
130 Undocumented commands:
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
131 ======================
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
132 EOF cmdenvironment eof exit help q quit
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
133
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
134 (Cmd) help say
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
135 Repeats what you tell me to.
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
136 Usage: speak [options] arg
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
137
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
138 Options:
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
139 -h, --help show this help message and exit
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
140 -p, --piglatin atinLay
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
141 -s, --shout N00B EMULATION MODE
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
142 -r REPEAT, --repeat=REPEAT
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
143 output [n] times
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
144
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
145 (Cmd) say goodnight, Gracie
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
146 goodnight, Gracie
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
147 (Cmd) say -ps --repeat=5 goodnight, gracie
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
148 OODNIGHT, GRACIEGAY
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
149 OODNIGHT, GRACIEGAY
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
150 OODNIGHT, GRACIEGAY
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
151 (Cmd) set
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
152 prompt: (Cmd)
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
153 editor: gedit
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
154 echo: False
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
155 maxrepeats: 3
71067a445663 added README
catherine@localhost
parents:
diff changeset
156 (Cmd) set maxrepeats 5
71067a445663 added README
catherine@localhost
parents:
diff changeset
157 maxrepeats - was: 3
71067a445663 added README
catherine@localhost
parents:
diff changeset
158 now: 5
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
159 (Cmd) say -ps --repeat=5 goodnight, gracie
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
160 OODNIGHT, GRACIEGAY
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
161 OODNIGHT, GRACIEGAY
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
162 OODNIGHT, GRACIEGAY
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
163 OODNIGHT, GRACIEGAY
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
164 OODNIGHT, GRACIEGAY
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
165 (Cmd) orate these are the
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
166 > times that
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
167 > try mens' souls
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
168 >
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
169 >
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
170 these are the times that try mens' souls
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
171 (Cmd) & we made a shortcut!
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
172 we made a shortcut!
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
173 (Cmd) history
71067a445663 added README
catherine@localhost
parents:
diff changeset
174 -------------------------[1]
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
175 help
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
176 -------------------------[2]
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
177 help say
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
178 -------------------------[3]
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
179 say goodnight, Gracie
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
180 -------------------------[4]
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
181 say -ps --repeat=5 goodnight, gracie
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
182 -------------------------[5]
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
183 set
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
184 -------------------------[6]
71067a445663 added README
catherine@localhost
parents:
diff changeset
185 set maxrepeats 5
71067a445663 added README
catherine@localhost
parents:
diff changeset
186 -------------------------[7]
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
187 say -ps --repeat=5 goodnight, gracie
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
188 -------------------------[8]
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
189 orate these are the
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
190 times that
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
191 try mens' souls
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
192
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
193
71067a445663 added README
catherine@localhost
parents:
diff changeset
194 -------------------------[9]
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
195 & we made a shortcut!
6
71067a445663 added README
catherine@localhost
parents:
diff changeset
196 (Cmd) run 3
115
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
197 say goodnight, Gracie
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
198 goodnight, Gracie
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
199 (Cmd) say put this in a file > text.txt
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
200 (Cmd) say < text.txt
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
201 put this in a file
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
202 (Cmd) set prompt "---> "
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
203 prompt - was: (Cmd)
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
204 now: --->
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
205 ---> say goodbye
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
206 goodbye
0820c42ea23e new README
catherine@Elli.myhome.westell.com
parents: 112
diff changeset
207 --->