| Syntax 
   #main-output
 
 Purpose
 
 #main-outputis one of the built-in program output streams.
 #main-outputidentifies the output destination, described by the "-of" or "-aof" directive on the OmniMark program's command line. Where there isn't an "-of" or "-aof" on the command line, then#main-outputidentifies the same destination as#process-output(that is, "standard output").
 When #main-outputand#process-outputidentify the same destination, the modifiers that are set on#main-outputare applied to the stream attachment. For example, if#main-outputis written to in text-mode and#process-outputis written to in binary-mode, then the stream attachment will be written to in text-mode. #main-outputis the default output (#current-output) in an OmniMark program. It is "owned" by (and part of the#current-outputset in) the output processor in a context-translation, down-translation, or process program and the input processor in a cross-translation or up-translation.
 The "declare #main-output has" declarations can be used to change some of the characteristics of the #main-outputstream. #main-outputwas identified by the nameoutputin earlier releases of OmniMark.outputcan still be used as a synonym for#main-output(except in contexts where the programmer has declared a shelf, argument, or function with the nameoutput), but its use is deprecated. Using#main-outputproduces programs that are easier to understand.
 By default, the #main-outputstream in any program that uses referents is treated as if it were opened withreferents-allowedandreferents-displayed. |