Consultor Eletrônico



Kbase 7014: You cannot redirect terminal output to printer.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
You cannot redirect terminal output to printer.

900710-pjh02There is no way to redirect terminal output without getting cursor
control characters on the printer. Progress is smart enough to realize
that the output should be going to the terminal and therefore tries
to control the cursor.

The way to get around this is to direct output to a file and then
redirect the output, use your operating system command to then type,
cat, etc. the file. The following is an example of how this could be
done.

Output to tmpfile.
For each state:
display state.
end.
put control "~033[5i". /* redirect output to printer on VT terms*/
unix cat tmpfile.
put control "~033[4i". /* redirect output back to terminal on VT */
output close.

The other option would be to set up a spooled device on your network,
and send your output to printer.

Progress Software Technical Support Note # 7014