You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Make medley.sh and its associated scripts POSIX compliant - i.e., debashify them
* Added config file for medley script, medley now reads from config file and prepends arguemnts from file to the copmmand line arguments
* WIP. Updates to medley.sh scripts.
* WIP. More on medley.sh and friends update.
* WIP. Medley redo
* WIP. Debugging new medley scripts
* Renamed medley.sh/medley.command to be medley_main.sh. Added code to compile single medley.sh/medley.command script by inlining all of the source'd medley_*.sh files.
* Add temp fix for cygwin Issue #1685
* Minor fixup to medley_utils.sh; take debug code out out of run_medley
* Add README to medley directory to explain how to compile medley.sh (medley.command).
* Ooops. This time really adding the README file to the medley directory explaining how to compile medley.sh (medley.command)
* Update loadup- scripts to use updated medley scripts rather than run-medley
* Fix default setting of $config_file in medley_configfile.sh
* Redo medley compile to pick up last commikt
* Fixing how maiko exe is found and sysout argument error processing - both issues discovered testing on MAcOS
* In medley_configfile, replace echo with printf %s because echo - does not work in zsh
* Supress config file on loadups calls to Medley
* Add oldschool support (use original run-medley) to loadup scripts; improve FAILURE detection so loadup-all won't proceed once one of the components fails
* Add in medley_args.sh add -prog as synonym to --maikoprog to aid in loadup scripts; in medley_run.sh script try to get a good exit code for call to maiko, especially useful for loadup scripts
* Run loadup scripts thru shellcheck and update as necessary to make Posix compliant
* Get rid of -nt comparisons in loadup-setup.sh because they are not posix-complaint. They were not really needed anyway.
* Removing (for now) use of lde exit codes to decide FAILURE case in loadup-setup.sh since exit codes from lde apperar to be inverted on MacOS.
* Update medley man page. Add - functionality to more args is medley_args.sh
* Compile medley.sh with changes from last commit
* Ooops. Left medley_args.sh changes out of last commit. Rectifying here.
* Added support for LDEKEYBOARDTYPE to medley_run to match run-medley
* Add to medley.sh: auto numbered id's and titles with id's inserted
* Cleanup some shellcheck issues in medley_main.sh
* fix maiko args -nh-xxx. were -nethub-xxxx. In medley_run.sh
* Overhaul handling of pass-on args to manage the quoting issues prevelant in the previous implementation
* Cleanup minor shellcheck issues in medley_*.sh scripts
* Add underscore as character allowed in ids - makes things clearer when id used with +
* Add a self-numbering id to medley calls in loadup scripts
* Put workaround in medley_run.sh for Issue #1702 - issues with sysout arg processing in Maiko
* Oops. messed up LDESRCSYSOUT in last commit. should be LDESOURCESYSOUT
* compile medley.sh
: Use ID_STRING as the id for this run of Medley, iunless ID_STRING is "-" or "\-\-".
98
-
If ID_STRING is "-", then use the basename of $MEDLEYDIR as the id.
99
-
If ID_STRING is "\-\-", then use the basename of the parent directory of $MEDLEYDIR as the id.
129
+
: Use ID_STRING as the id for this run of Medley, unless ID_STRING is "-", "\-\-", or "\-\-\-".
130
+
If ID_STRING is "-", then reset the id to "default" (e.g., if it was previously set in the
131
+
config file). If ID_STRING is "\-\-", then use the basename of $MEDLEYDIR as the id.
132
+
If ID_STRING is "\-\-\-", then use the basename of the parent directory of $MEDLEYDIR as the id.
100
133
Only one instance of Medley with a given id can run at a time.
101
134
The id is used to distinguish the virtual memory stores so that multiple
102
135
instances of Medley can run simultaneously. Default id is "default".
103
136
104
-
-m *N*, \-\-mem *N*
105
-
: Set Medley to run in *N* MB of virtual memory. Defaults to 256MB.
137
+
-m [*N* | -], \-\-mem [*N* | -]
138
+
: Set Medley to run in *N* MB of virtual memory. Defaults to 256MB. If a value of "-" is given, resets
139
+
to default value.
106
140
107
-
-p *FILE*, \-\-vmem *FILE*
141
+
-p [*FILE* | -], \-\-vmem [*FILE* | -]
108
142
: Use FILE as the Medley virtual memory (vmem) store. FILE must be writeable by the current user.
109
143
Care must be taken not to use the same vmem FILE for two instances of Medley running simultaneously.
110
144
The \-\-id flag will not protect against vmem collisions when the \-\-vmem flag is used.
111
-
Default is to store the vmem in LOGINDIR/vmem/lisp_XXX.virtualmem, where XXX is the id of this
112
-
Medley run (see \-\-id flag above). See \-\-logindir below for setting of LOGINDIR. On Windows (Docker) installations, *FILE* is specified in the Medley file system, not the host Windows file system.
145
+
If the value "-" is given, then resets the vmem file to the default.
146
+
Default is to store the vmem in LOGINDIR/vmem/lisp_III.virtualmem, where III is the id of this
147
+
Medley run (see \-\-id flag above). See \-\-logindir below for setting of LOGINDIR.
113
148
114
149
-r \[*FILE* | -], \-\-greet \[*FILE* | -]
115
150
: Use FILE as the Medley greetfile, unless FILE is "-" in which case
116
151
Medley will start up without using a greetfile. The default Medley greetfile
117
152
is $MEDLEYDIR/greetfiles/MEDLEYDIR-INIT, except when the \-\-apps flag is used
118
-
in which case it is $MEDLEYDIR/greetfiles/APPS-INIT. On Windows (Docker) installations, *FILE* is
153
+
in which case it is $MEDLEYDIR/greetfiles/APPS-INIT. On Windows/Cygwin installations, *FILE* is
119
154
specified in the Medley file system, not the host Windows file system.
120
155
121
-
-x \[*DIR* | -], \-\-logindir \[*DIR* | -] \*\***On Linux and WSL installations**\*\*
122
-
: Use DIR as LOGINDIR in Medley, unless DIR is "-", in which case use
123
-
\$MEDLEYDIR/logindir. DIR (or \$MEDLEYDIR/logindir) must be writeable by the current user.
: Set the parameters for using Nethub XNS networking. *Host* is the full domain name of the nethub host. *Port* is the port on *Host* that nethub is using.
167
+
*Mac* is the Mac address that this instance of Medley should use when contacting the nethub host. *Debug* is the level of nethub debug information
168
+
that should be printed on stdout (value is 0, 1, or 2). A *Host* value is required and serves to turn nethub functionality on. *Port*, *Mac* and *Debug*
169
+
parameters are optional and will default if left off. Finally, if any of the parameters have a value of "-", any previous setting (e.g., in a config file)
170
+
for the parameter will be reset to the default value - which in the case of *Host* is the null string, turning nethub functionality off.
: Run Medley in the context of the named WSL *DISTRO* instead of within Docker. If *DISTRO* is "-", used the default WSL distro. Equivalent to typing "wsl -d *DISTRO* medley ..." into a Command or Powershell window.
178
+
--maikodir *DIR*
179
+
: Use *DIR* as the directory containing the Maiko emulator. For testing purposes only.
142
180
143
181
144
182
Other Options
@@ -154,11 +192,33 @@ If no such virtual memory file exists, then Medley will start from the standard
154
192
specified in the Medley file system, not the host Windows file system.
155
193
156
194
*PASS_ON_ARGS*
157
-
: All arguments after the "\-\-" flag, are passed unaltered to lde via run-medley.
195
+
: All arguments after the "\-\-" flag, are passed unaltered to the Maiko emulator.
196
+
158
197
198
+
CONFIG FILE
199
+
===========
200
+
A config file can be used to "pre-specify" any of the above command line arguments.
201
+
The config file consists of command line arguments (flags or flag-value pairs), *one per line*.
202
+
These arguments are read from the config file and prepended to the arguments actually given on
203
+
the command line. Since later arguments override earlier arguments, any argument actually given
204
+
on the command line will override a conflicting argument given in the config file.
205
+
206
+
Unless specified using the -c (--config) argument, the default config file will be $MEDLEYDIR/.medley_config,
207
+
if it exists, and $HOME/.medley_config, otherwise.
208
+
209
+
Specifying, "-c -" or "--config -" on the command line will suppress the use of config files for the
210
+
current run of Medley.
159
211
160
-
FILES
161
-
=====
212
+
*Note:* care must be taken when using -g (--geometry) and/or -s (--screensize) arguments in config files.
213
+
If only one of these is specified, then the other is conputed. But if both are specified, then the specified
214
+
dimensions are used as given. Unexpected results can arise if one is specified in the config file
215
+
but the other is specified on the command line. In this case, the two specified dimensions will be used as given.
216
+
It will not be the case, as might be expected, that the dimension given in the config file will be overridden
217
+
by a dimension computed from the dimension given on the command line.
218
+
219
+
220
+
OTHER FILES
221
+
===========
162
222
163
223
\$HOME/il
164
224
: Default Medley LOGINDIR
@@ -181,4 +241,4 @@ See GitHub Issues: <https://github.com/Interlisp/medley/issues>
0 commit comments