[Tex/LaTex] Backspace in terminal output

terminal-output

Is there a way to insert a backspace character while writing to the terminal? I'd like to remove the space character that is automatically inserted between two calls of \message{}:

\message{.}\message{.}\message{.}
\bye

is written as . . . to the terminal but I want ....

Best Answer

The texio library provided by luatex provides more control over message formatting and does not insert a space:

\def\mymessage#1{\directlua{texio.write("\luaescapestring{#1}")}}
\mymessage{.}\mymessage{.}\mymessage{.}
\bye

The result is:

grendel:io sharpie$ luatex io.tex
This is LuaTeX, Version beta-0.60.2-2010071218 (TeX Live 2010) (rev 3736) 
(./io.tex... )
No pages of output.
Related Question