Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - set alternate control the alternate flag http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 set alternate       Control the alternate flag
------------------------------------------------------------------------------
 Syntax
   set alternate on|off

 Arguments
   None.

 Description
   The set alternate command controls the alternate flag. The default
   alternate flag setting is off.

   If on is specified and the alternate file is open, then screen I/O is
   duplicated to the alternate file. If off is specified, then screen I/O
   is not duplicated to the alternate file.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   proc Test_setalternate
   set alternate to "test.txt"
   ? "Text 1 will not be in the alternate file."
   set alternate on
   ? "Text 2 will be in the alternate file."
   ?
   @ row(), 0 say "Text 3 will not be in the alternate file."
   close alternate           // turn off and closes the alternate file
   ? "Text 4 will not be in the alternate file."
   ? ; ? "Contents of the alternate file"
   type "test.txt"
   erase "test.txt"
   endproc

   proc main
   Test_setalternate()
   endproc

See Also: close alternate set alternate to

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson