Quoter Commands

/REQUIRE quoter.tf


After doing "/REQUIRE quoter.tf", the quoting commands can be used to take the output of various sources and execute them as commands, typically quoting them to a mud server. These are all just shortcuts for things you can already do with /quote -S. The default prefix is ":|", which will perform a pose on Tiny-style muds. The default prefix can be changed by setting the appropriate variable: qdef_prefix, qmac_prefix, qworld_prefix, qtf_prefix, qsh_prefix, or qmud_prefix. An alternate prefix can be given on the command line for /qdef, /qmac, /qworld, and /qfile. Also, before any output is generated, the command used to generate the output is quoted.

/QDEF [prefix] name
Prepends prefix to each line generated by "/list name", and executes each resulting line as a command.

/QMAC [prefix] name
Searches for the definition of macro name in a group of tf files, prepends prefix to each line found, "/quote name", and executes each resulting line as a command.

/QWORLD [prefix] name
Prepends prefix to each line generated by "/listworlds name", and executes each resulting line as a command.

/QFILE [prefix] name
Prepends prefix to each line of file name, and executes each resulting line as a command.

/QTF cmd
Prepends prefix to each line generated by executing cmd in tf, and executes each resulting line as a command.

/QSH cmd
Prepends prefix to each line generated by executing cmd in the shell, and executes each resulting line as a command.

/QMUD [-wworld] cmd
Prepends prefix to each line generated by executing cmd on world world (default: the current world), and executes each resulting line as a command. /Qmud requires that the mud supports the OUTPUTPREFIX and OUTPUTSUFFIX commands.

Examples:

The command

  /qsh finger
would generate a series of commands something like this:
  :! finger
  :| Login       Name              TTY Idle    When    Site Info
  :| hawkeye  Ken Keys              p3       Fri 19:32 
  :| hawkeye  Ken Keys              p4       Sat 17:37 

And, on a Tiny-style mud named "Cave", the command

  /qmud score
would generate a series of commands something like this:
  :| Cave> score
  :| You have 8704 pennies.


See: /quote, processes, /paste


Back to index
Back to tf home page
Copyright © 1995 - 1999 Ken Keys