← 返回命令列表

Linux command

frotz 命令

趣味

复制后可按需替换文件名、目录或参数。

常用示例

Play Z-machine game

frotz [game.z5]

Set screen width and height

frotz -w [80] -h [24] [game.z5]

Play in dumb terminal mode

dfrotz [game.z5]

Load a saved game on startup

frotz -L [savefile] [game.z5]

Restrict file access to a directory

frotz -R [/path/to/directory] [game.z5]

Play with abbreviation expansion and ignore errors

frotz -x -i [game.z5]

说明

frotz is an interpreter for Infocom-style interactive fiction (Z-machine games). It runs text adventure games in formats from Z3 through Z8, including classic titles and modern IF works. The tool provides terminal and graphical interfaces for playing these games, with support for save/restore, transcripts, and input recording.

参数

-a
Watch attribute setting.
-A
Watch attribute testing.
-b _color_
Background color.
-c _n_
Context lines for scrolling.
-d
Disable color output.
-e
Enable sound effects.
-f _color_
Foreground color.
-F
Force color mode even if disabled in config.
-h _rows_
Screen height.
-i
Ignore fatal Z-machine errors.
-I _n_
Interpreter number to report to the game.
-l _n_
Left margin in characters.
-L _file_
Load a saved game file on startup.
-m
Enable mouse support.
-o
Watch object movement.
-O
Watch object locating.
-p
Plain ASCII output only (no accented characters).
-P
Alter piracy opcode.
-q
Quiet mode (disable sound effects).
-r _n_
Right margin in characters.
-R _directory_
Restrict file read/write to specified directory.
-s _n_
Random number seed value.
-S _n_
Set transcript width (0 to disable line splitting).
-t
Set Tandy bit.

FAQ

What is the frotz command used for?

frotz is an interpreter for Infocom-style interactive fiction (Z-machine games). It runs text adventure games in formats from Z3 through Z8, including classic titles and modern IF works. The tool provides terminal and graphical interfaces for playing these games, with support for save/restore, transcripts, and input recording.

How do I run a basic frotz example?

Run `frotz [game.z5]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a do in frotz?

Watch attribute setting.