# /recordline

Usage:

/RECORDLINE [-lig] [-w[world]] [-ttime] text

Records text into a history buffer.

Options:

-w
  record to current world's history
-wworld
  record to world's history
-l
  record to local history
-g
  record to global history (default)
-i
  record to input history
-ttime
  record the line with the system time time (as displayed by `/recall -t@`) instead of the current time
-aattrs
  Record text with the attributes given by attrs.
-p
  Interpet "`@{attr}`" strings as commands to set attributes inline. "`@@`" strings are interpreted as "`@`". "`@{n}`" or "`@{x}`" will turn attributes off. See also: decode_attr().

The text will not be echoed to the screen or saved in any log.

/Recordline can be combined with /quote to read a log file back into history. For example, if you had created a log with "`/log -i input.log`" in an earlier tf session, you could start a new tf session and use

`/quote -S -dexec /recordline -i - 'input.log`

to restore that input history. That way, you could use the RECALLB, RECALLF, RECALLBEG, RECALLEND, SEARCHB, and SEARCHF (^P, ^N, ^[<, ^[>, ^[P, and ^[N) keys to recall lines you typed in the earlier session.

Note that /recordline always appends to the end of a history. `/Recordline -ttime` makes it possible to insert lines that are not in chronological order, which may produce strange results with /recall.

See: /recall, /quote, history

Back to index
Back to tf home page

Copyright © 1995, 1996, 1997, 1998, 1999, 2002, 2003, 2004, 2005 Ken Keys