/grab

Usage:

/GRAB text


This command puts text into the input buffer. It is not really useful from the normal command line, but is quite useful when called from a macro to redefine macros, or perhaps when bound to a key to speed up part of a line (macros allow you to largely do what this would allow, however). Any text already in the input buffer is discarded.

Example:

  /def reedit = /grab /edit %1 = $%1
If you had previously done "/def flail = :flails at his keyboard", the command "/reedit flail" would place "/edit flail = :flails at his keyboard" in the input buffer and allow you to edit it using the editing keys. See "evaluation" for details on how macros like this work.

See: /input, general


Back to index
Back to tf home page
Copyright © 1995, 1996, 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys