[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dumping window history
Date: Wed, 23 Jan 1991 11:40-0500
From: Dodds@YUKON.SCRC.Symbolics.COM (Douglas Dodds)
Date: Wed, 23 Jan 1991 09:54 EST
From: s9274%srl1@LANL.GOV
how can I dump a window's output history to a text file?
Try the "Show Output History" command. The underlying function is
DW::OUTPUT-OUTPUT-HISTORY-AS-TEXT.
That's the right appproach. More particularly, the command :Copy Output
History does exactly what MKlein wants to do, and it's also built on
DW::OUTPUT-OUTPUT-HISTORY-AS-TEXT. The needed cliche for doing the
equivalent thing (to a file) in a program is:
(CP::WITH-STANDARD-OUTPUT-BOUND (LIST <pathname>)
(DW::OUTPUT-OUTPUT-HISTORY-AS-TEXT <dynamic window>))
Slightly simpler, and just as undocumented, is
(CP::COM-COPY-OUTPUT-HISTORY (LIST <destination>)
<dynamic window>)
Where <destination> can be a Buffer, File, Kill Ring, Printer, Stream,
or Window.