This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Console Window Logging.


On Thu, 7 Mar 2002, Duane Ellis wrote:

> Several people I support have asked me for a means by which to 'log
> the console window output' to a file. What I want is anything written
> to the TK Console window to go to *BOTH* the TK console window, and a
> file, ie: "foobar.log"
>
> How can I do this? {I cannot use the "-nw" option, I have
> to have tk/tcl operating in this situation}

It's really simple... Do you have a support contract? (O:-)

Take a look at gdbtk_tcl_fputs in interface.tcl. That should give you a
big head start. (Also look at gdbtk_fputs in generic/gdbtk-hooks.c and
the calls to gdbtk_fileopen in gdbtk.c's gdbtk_init.)

Keith



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]