NETLink`
NETLink`
ShowNETConsole
displays the .NET console window and begins capturing output sent to the Console.Out and Console.Error streams.
ShowNETConsole["stdout"]
captures only Console.out.
ShowNETConsole["stderr"]
captures only Console.Error.
更多信息和选项
- To use ShowNETConsole, you first need to load .NET/Link using Needs["NETLink`"].
- Anything written to these streams before ShowNETConsole is first called will not appear, and closing the console window will stop capturing the streams (until ShowNETConsole is called again).