Monument ([info]marnanel) wrote in [info]gnusto,
@ 2003-12-11 19:29:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
The -gnusto switch
This is an overview of the current state of the "-gnusto" switch in Mozilla, according to Gnusto's CVS.

-gnusto can be used with no arguments, in which case it will simply open a window ready for you to use. No browser window will be opened along with it.

You can give one argument. The syntax is a little convoluted, but we're rather restricted by what Moz makes possible.

The argument is a sequence of strings separated by commas.
* An empty string will be ignored.
* A single hyphen will also be ignored.
* A string containing at least one equals sign is considered to be a "<field>=<value>" pair, where "field" is all the text up to the first equals sign.
* A string containing no equals sign is considered an abbreviation for "open=" plus the string. (In other words, "open" is the default field name.)

There are several possible field name. Unknown field names are ignored.

The field names currently accepted are:

copper=1 makes Gnusto dump the generated JavaScript ("jit") as it passes over it. ("Copper Trail")

gameoverquit=1 causes Gnusto to exit when the story finishes.

golden=1 makes Gnusto dump PC values before executing each instruction. ("Golden Trail")

input=X takes input from the file X. However, if X begins with a star, it will have the star removed, be split at slashes, have its underscores replaced by spaces and then used as a sequence of literal commands. (For example: -gnusto ~/hhgg.z5,input=*get_up/turn_on_light/get_gown/wear_gown)

nowin=1 should stop any window coming up. In fact it inhibits screen writing.

open loads a file. The arguments are loaded in order, so you can use this twice in order to load a story and then a save file. All "open" arguments are loaded before any "input" arguments are considered.

output=filename causes Gnusto to print output to that file. May be given multiple times.

robmiz and a few other weird experimental features are implemented.

seed=N sets the random number generator seed to -|N|. (|N|<1000 causes sequential mode, as in the Z-spec.)

Coming soon: piracy, tandy, specver...



(Post a new comment)

real bonus
(Anonymous)
2008-06-29 08:51 pm UTC (link)
this bonus ;)

(Reply to this)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…