Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2014-01-14 21:52:18 +0400
committerMiguel de Icaza <miguel@gnome.org>2014-01-14 21:52:18 +0400
commit7d80c22054636d3eb0e1cfa506cca6a0e5ef2982 (patch)
treeded9f3f9ef330df779e35db393506b1049a3abd6 /mcs
parent285f815fc5faa59d3be1f70b7427f91e4eaa461e (diff)
Add support for stdout returns
Diffstat (limited to 'mcs')
-rw-r--r--mcs/tools/csharp/repl.cs10
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;