KSM-Scheme is invoked from the command line as
ksm [options] [file arg ...]
Acceptable options are
| -xl file | load file before starting the interpreter |
| -xc encoding | set the default encoding to encoding |
| -xh | display the help information |
If encoding is specified, input files (including standard input) are assumed to be encoding by encoding and they are automatically converted to UTF-8 encoding while reading the file. Output files (including standard output and standard error) are automatically converted to encoding from UTF-8 that is the internal encoding in KSM-Scheme.
For example, to use KSM-Scheme under the circumstances in which
kterm with default encoding of EUC-JP is used, following
invocation will provide the desirable interaction.
ksm -xc EUC-JP
If file is specified, it should be the name of a Scheme source file. The KSM-Scheme interpreter loads the file and then terminates. If file is omitted, KSM-Scheme enters an interactive mode and accepts Scheme source from standard input.
If args are specified, it is passed the file program as
command line arguments. They can be accessed by cmdline-args from
the program.
$ cat src.scm (display (cmdline-args)) (newline) $ ksm src.scm a b c (src.scm a b c)
When ksm is invoked, it initializes the internal state, loads the
initialization file that is located in the KSM home directory (e.g.,
/usr/local/ksm/ksm-0.3.0, loads the pre-load file that is
specified by -xl option (if present), and loads the source file
(if specified).
Go to the first, previous, next, last section, table of contents.