diff options
author | Miguel de Icaza <miguel@gnome.org> | 2014-01-14 21:52:18 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2014-01-14 21:52:18 +0400 |
commit | 7d80c22054636d3eb0e1cfa506cca6a0e5ef2982 (patch) | |
tree | ded9f3f9ef330df779e35db393506b1049a3abd6 /mcs | |
parent | 285f815fc5faa59d3be1f70b7427f91e4eaa461e (diff) |
Add support for stdout returns
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/tools/csharp/repl.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mcs/tools/csharp/repl.cs b/mcs/tools/csharp/repl.cs index 1d8738bce74..5083e6f28c5 100644 --- a/mcs/tools/csharp/repl.cs +++ b/mcs/tools/csharp/repl.cs @@ -603,7 +603,10 @@ namespace Mono { RESULT_NOT_SET = 3, // Errors and warnings string follows - ERROR = 4, + ERROR = 4, + + // Stdout + STDOUT = 5, } class ClientCSharpShell : CSharpShell { @@ -650,6 +653,11 @@ namespace Mono { string err = ns.GetString (); Console.Error.WriteLine (err); break; + + case AgentStatus.STDOUT: + string stdout = ns.GetString (); + Console.WriteLine (stdout); + break; case AgentStatus.RESULT_NOT_SET: return null; |