next up previous contents index
Next: Getting input from the Up: Using CCATSL Windows Previous: The message, status and   Contents   Index


Printing it out

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 PrintStdioCL

These 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 */
The second of these can be accessed most easily via the system menu (obtained by clicking in the small box at the top-left of the main CCATSL window).


next up previous contents index
Next: Getting input from the Up: Using CCATSL Windows Previous: The message, status and   Contents   Index
CATAM admin 2010-02-23