- May
- 120
- 1
The documentation for TYPE starts:
TYPE [/A:[[-][+]rhsadecijopt] /I"text" /L /P] [@file] file...
However, TYPE actually works with no file parameters, when it reads
from STDIN. This is useful when you have an external command that uses
ANSI colour sequences, and you want to display that colour - you can
pipe into TYPE. For example,
ls --color | TYPE
Just putting [] round the file... part of the parameter list (plus a
note in the text saying "Without a file list, TYPE displays the
contents of STDIN") should be enough.
Paul.
TYPE [/A:[[-][+]rhsadecijopt] /I"text" /L /P] [@file] file...
However, TYPE actually works with no file parameters, when it reads
from STDIN. This is useful when you have an external command that uses
ANSI colour sequences, and you want to display that colour - you can
pipe into TYPE. For example,
ls --color | TYPE
Just putting [] round the file... part of the parameter list (plus a
note in the text saying "Without a file list, TYPE displays the
contents of STDIN") should be enough.
Paul.