All the techniques for printing out graphs (here) can be used
to print out CCATSL windows containing text (as far as CCATSL is concerned,
text is just a special type of graphic). If you use the standard C library
routines printf and scanf
(which write to a special window called the Stdio window)
you can use PrintColourCL, PrintCL and the window-capture method
(described
here), or you can use
fopen to write the data to a disk file, and then load up the file and print
it out from a text editor (including Emacs). Simpler ways
which will work provided you haven't written more than 400 lines
are FileStdioCL and
PrintStdioCL.
FileStdioCL and PrintStdioCLThese routines provide an easy way of saving and printing out the last 400 lines of text from the Stdio window.
|
FileStdioCL("output.txt"); /* Save the Stdio window to a text file.
If the argument is "" the user will
be prompted for a filename. */
PrintStdioCL(); /* Printout the contents of the Stdio window */
|