Hi Mathieu, a while ago i announced and introduced a modification to the devel_0_37 branch which implements the ability to hook the console output - it's a mechanism that allows multiple listeners (via callbacks) to eavesdrop on the printouts. Is there any specific reason why you didn't take on this patch? Your widget could easily use it, while leaving open other forms of console output.
The respective API functions of devel_0_37 are sys_addprinthook and sys_rmprinthook.
best greetings, Thomas
----- Original Message ----- From: "Mathieu Bouchard" matju@sympatico.ca To: pd-list@iem.kug.ac.at Sent: Monday, January 26, 2004 1:47 AM Subject: [PD] Pd Console (fwd)
just to inform you of the existence of this hack of mine. The attachment mentioned below is downloadable at:
http://artengine.ca/jmax/gridflow/gallery/pd_console.diff
---------- Forwarded message ---------- Date: Sun, 25 Jan 2004 04:24:52 -0500 (EST) From: Mathieu Bouchard matju@sympatico.ca To: pd-dev@iem.kug.ac.at Subject: Pd Console
The attachment on this file is the output of "cvs diff -u" containing my modifications to Pd such that you can do this:
pd -console 500
where 500 is the number of scrollback lines you want; this creates a Tk text widget to which post() and [print] are redirected. This is most helpful when you don't have a terminal to launch Pd from, but it's also helpful if you like to have one window less.
I submit this for inclusion into the main Pd branch.
screenshot:
http://artengine.ca/jmax/gridflow/gallery/pd_console.gif
Any suggestions?
Mathieu Bouchard http://artengine.ca/matju
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list