{
  "id": "frotz",
  "name": "Frotz",
  "homepage": "https://661.org/proj/if/frotz/",
  "description": "Infocom-style interactive fiction player.",
  "executables": [
    "frotz",
    "dfrotz",
    "sfrotz"
  ],
  "dotfiles": {
    "paths": [
      "~/.frotzrc"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Play a story file",
    "description": "Start the curses Frotz interpreter on a Z-code or Blorb file with display, sound and random-seed options. Debug watch options and screen size overrides are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://manpages.debian.org/testing/frotz/frotz.6.en.html",
        "revision": "2.55+dfsg-3",
        "evidence": "frotz [options] file [blorb_file]\n-b <colorname>  Sets the default background color.\n-f <colorname>  Sets the default foreground color.\n-d  Disable color.\n-F  Force color mode.\n-e  Enable sound.\n-q  Quiet. Turns off sound effects.\n-m  Enable mouse support.\n-p  Plain ASCII output only.\n-s N  Set the random number seed value.\n-t  Sets the Z-machine's Tandy bit, which may affect the behavior of certain Infocom games.\n-u N  Sets the number of slots available for Frotz's multiple undo hotkey\n-x  Expand the abbreviations \"g\", \"x\", and \"z\" to \"again\", \"examine\", and \"wait\".\n-R <path>  Restricted read/write.\nblack red green yellow blue magenta cyan white\n"
      }
    ],
    "field": [
      {
        "id": "story",
        "label": "Story file",
        "description": "Z-code or Blorb file.",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "blorb",
        "label": "Blorb file",
        "description": "Optional alternatively-named Blorb file.",
        "type": "path",
        "position": 1,
        "min": 0,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "background",
        "label": "Background color",
        "type": "enum",
        "option": [
          "-b"
        ],
        "choices": [
          {
            "value": "black",
            "label": "Black"
          },
          {
            "value": "red",
            "label": "Red"
          },
          {
            "value": "green",
            "label": "Green"
          },
          {
            "value": "yellow",
            "label": "Yellow"
          },
          {
            "value": "blue",
            "label": "Blue"
          },
          {
            "value": "magenta",
            "label": "Magenta"
          },
          {
            "value": "cyan",
            "label": "Cyan"
          },
          {
            "value": "white",
            "label": "White"
          }
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "foreground",
        "label": "Foreground color",
        "type": "enum",
        "option": [
          "-f"
        ],
        "choices": [
          {
            "value": "black",
            "label": "Black"
          },
          {
            "value": "red",
            "label": "Red"
          },
          {
            "value": "green",
            "label": "Green"
          },
          {
            "value": "yellow",
            "label": "Yellow"
          },
          {
            "value": "blue",
            "label": "Blue"
          },
          {
            "value": "magenta",
            "label": "Magenta"
          },
          {
            "value": "cyan",
            "label": "Cyan"
          },
          {
            "value": "white",
            "label": "White"
          }
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "no_color",
        "label": "Disable color",
        "type": "boolean",
        "option": [
          "-d"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet (no sound)",
        "type": "boolean",
        "option": [
          "-q"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "plain_ascii",
        "label": "Plain ASCII output",
        "type": "boolean",
        "option": [
          "-p"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "seed",
        "label": "Random seed",
        "type": "integer",
        "option": [
          "-s"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "undo_slots",
        "label": "Undo slots",
        "type": "integer",
        "option": [
          "-u"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "expand",
        "label": "Expand g, x and z",
        "type": "boolean",
        "option": [
          "-x"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "tandy",
        "label": "Tandy bit",
        "type": "boolean",
        "option": [
          "-t"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "mouse",
        "label": "Mouse support",
        "type": "boolean",
        "option": [
          "-m"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "restrict_path",
        "label": "Restrict file access to",
        "type": "path",
        "option": [
          "-R"
        ],
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "play",
        "label": "Play",
        "fields": [
          "story",
          "blorb",
          "background",
          "foreground",
          "plain_ascii",
          "quiet"
        ],
        "required": [
          "story"
        ]
      },
      {
        "id": "plain",
        "label": "Plain terminal (no color, ASCII)",
        "set": {
          "no_color": [
            true
          ],
          "plain_ascii": [
            true
          ]
        },
        "lock": [
          "no_color",
          "plain_ascii"
        ],
        "fields": [
          "story",
          "no_color",
          "plain_ascii",
          "quiet"
        ],
        "required": [
          "story"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "story",
          "blorb",
          "background",
          "foreground",
          "no_color",
          "quiet",
          "plain_ascii"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "seed",
          "undo_slots",
          "expand",
          "tandy",
          "mouse",
          "restrict_path"
        ]
      }
    ]
  }
}
