[erlang-questions] print \t (tab) to stdout

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Thu Dec 16 20:13:35 CET 2010


On Thu, Dec 16, 2010 at 20:08, Wes James <comptekki@REDACTED> wrote:
> I was looking at
>
> http://www.erlang.org/doc/man/io.html#format-1
>
> to see if there is a way to output a \t or tab to stdout.  How is this
> done?  When I put it in like this:
>
> [io:format("#\tif i==~w:~n",[Value]) || Value <- lists:seq(2501,70100,2500)].
>
> it puts 7 spaces in for the \t on the console.

See the ~c parameter and 'man ascii'.


-- 
J.


More information about the erlang-questions mailing list