[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dump of Window Contents



    Date: Wed, 23 Jan 91 16:52:13+0900
    From: kddlab!harl86.harl.hitachi.co.jp!mklein@uunet.UU.NET (mklein)

    My question: how can I dump a window's output history to a text file? It seems a waste
    to define my own variable to store output if the window already stores everything.

You didn't say whether this is being done manually or from a program.
The manual method is simple:

 Command: Copy Output History (a destination) File <pathname> (from window) <window>

The programmatic interface to this is the internal function
DW::OUTPUT-OUTPUT-HISTORY-AS-TEXT, which takes a window and an optional
output stream.  I don't know whether it handles line wrapping and paging
itself or not.  It might be easier to just call the function that the CP
command expands into:

(cp::com-copy-output-history `((:file ,pathname)) window)

                                                barmar