SYNTAX

    echo [options] [<string>]


OPTIONS

-h (--help) bool

Display help.

-e (--stderr) bool

Print to stderr rather than stdout.

-w (--wrap) bool

Wraps the text to the screen width, ensuring that words do not get split across lines.

-i (--indent) uint

The number of characters to indent the text by. Only has an effect when used with --wrap.

-a (--attributes) enum

The attributes to assign to the text written to the console. [bold, underscore, blink, inverse, conceal] Can be specified more than once.

-f (--foreground-color) enum

The color the font glyphs are to be drawn in. [black, red, green, yellow, blue, magenta, cyan, white]

-b (--background-color) enum

The color the rectangle behind the font glyphs is to be drawn in. [black, red, green, yellow, blue, magenta, cyan, white]

-B (--binary) bool

Write to the console in binary mode. Note, not all consoles support the notion of binary mode. If not, KErrNotSupported (-5) will be returned. In practice, currently only the VT100 console variants support this.

-n (--no-newline) bool

By default echo will append a new line (CRLF) on to the end of the string argument, if it doesn't already have one. Use --no-newline to prevent this.


ARGUMENTS

[<string>]

The text to be printed. Any further arguments or options will be coalesced into this one. [string]


DESCRIPTION

Print a text string to stdout.

If no text is specified as an argument, reads from stdin and writes the result to stdout.

Note, this command used to interpret escape sequences such as ^r and ^t itself. This functionality has now been moved into CCommandBase so all fshell commands can benefit from it. A consequence of this change is that it is no longer necessary to double escape such sequences.


COPYRIGHT

Copyright (c) 2006-2010 Accenture. All rights reserved.