DMUG-Archiv 2000

Frühere

 

Chronologischer Index

 

Spätere

Vorherige

 

Thematischer Index

 

Nächste

Re: Print in Message Window

Hallo,

die Variante:

MyPrint[arg__] := Block[{$Output = OutputStream["stderr", 2]},
Print[arg]]

wird wohl eher nicht gefallen, was ist aber mit

MyPrint2[arg__] := Module[{ins = {arg}},
    NotebookWrite[FrontEnd`MessagesNotebook[], 
      Cell[RowBox[ToBoxes /@ ins], "Print"]]
    ]

und

Block[{Print = MyPrint2},
  Print[x, Pi, "Hallo"]]

??
Besonders r"ude Menschen w"urden hier Print=MyPrint2 global setzen.

Gruss
  Jens


"Georg Ch. Mellau" wrote:
> 
> Hallo,
> 
> ich habe ein Problem :
> 
> Ich moechte das ALLE Mathematica Print[...]  Befehle in den
> Message Fenster landen. Die Methode
> 
> SetOptions[mynotebook,
> PrintAction -> "PrintToConsole"];
> 
> funktioniert nicht, meistens wird doch ins Notebook gedruckt.
> 
> Gibt es hier überhaupt eine  Loesung ?
> 
> MfG
> 
> Georg Mellau


Antworten:
AW: Print in Message Window
Klamser, 29.11.2000
Verweise:
Print in Message Window
Georg Ch. Mellau, 27.11.2000

Frühere

 

Chronologischer Index

 

Spätere

Vorherige

 

Thematischer Index

 

Nächste

DMUG-Archiv, http://www.mathematica.ch/dmug-liste.html; Letzte Änderung: 19.04.2004 18:21