Imported Upstream version 4.6.0.125

Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-08-03 10:59:49 +00:00
parent a569aebcfd
commit e79aa3c0ed
17047 changed files with 3137615 additions and 392334 deletions

View File

@@ -1,91 +0,0 @@
2010-05-08 Daniel Nauck <dna@mono-project.de>
* csharp.sln: enable build for jay project in Debug|Win32 configuration.
2010-05-08 Daniel Nauck <dna@mono-project.de>
* csharp.sln: add jay project as build dependency to Mono.CSharp project.
2010-04-27 Miguel de Icaza <miguel@novell.com>
* repl.cs: Improvements to run better on Windows.
2010-05-27 Marek Safar <marek.safar@gmail.com>
* repl.cs: Sync with the latest gmcs
2010-02-08 Miguel de Icaza <miguel@novell.com>
* getline.cs: Add support for ESC-letter to become Alt-letter.
2010-02-05 Miguel de Icaza <miguel@novell.com>
* getline.cs (NextAvailable): Fix off-by-one error
2010-02-04 Miguel de Icaza <miguel@novell.com>
* Take advantage of the Describe feature.
2009-12-16 Miguel de Icaza <miguel@novell.com>
* repl.cs: Avoid crash, fixes 554898
2009-09-07 Marek Safar <marek.safar@gmail.com>
* repl.cs: Disabled Report.Stderr hacking.
2009-04-17 Miguel de Icaza <miguel@novell.com>
* Makefile: Make this build using csharplib instead of referencing
the gmcs.exe that was just built.
* repl.cs: Support executing files that were specified in the
command line.
2008-12-16 Jb Evain <jbevain@novell.com>
* Makefile: use the monolinker.exe from the profile directory.
2008-11-02 Miguel de Icaza <miguel@novell.com>
* repl.cs: Fix regression, quit when requested.
2008-09-28 Miguel de Icaza <miguel@novell.com>
* repl.cs (PrettyPrint): Add support for displaying characters
properly.
2008-09-27 Miguel de Icaza <miguel@novell.com>
* getline.cs: Add support for autocompletion.
* repl.cs (RunRepl): Catch exceptions, and send those as errors
back to the client.
* repl.cs: Rename AttachedCSharpShell to ClientCSharpShell.
Make most of the CSharpShell code into instance code, so that we
can override the behavior on ClientCSharpShell and reuse most of
the logic there.
CSharpShell now has a virtual `Evaluate' that is used to implement
the evaluator.
Implemented a new more robust protocol for sending the information
back and forth.
Now the results are show on the client, and come prettyprinted.
2008-09-25 Miguel de Icaza <miguel@novell.com>
* repl.cs: On errors, return null.
2008-09-24 Zoltan Varga <vargaz@gmail.com>
* Makefile repl.cs: Add support for attaching to arbitrary mono
processes.
2008-09-10 Miguel de Icaza <miguel@novell.com>
* Move the repl shell here.

View File

@@ -6,7 +6,8 @@ include ../../build/rules.make
// 3021: CLS attribute not needed since assembly is not CLS compliant
NOWARNS = -nowarn:3021
LOCAL_MCS_FLAGS = -r:$(topdir)/class/lib/$(PROFILE)/Mono.CSharp.dll -r:$(topdir)/class/lib/$(PROFILE)/Mono.Posix.dll -r:Mono.Management.dll -unsafe $(NOWARNS)
LOCAL_MCS_FLAGS = -unsafe $(NOWARNS)
LIB_REFS = Mono.CSharp Mono.Posix Mono.Management System
PROGRAM = csharp.exe

View File

@@ -462,7 +462,7 @@ namespace Mono.Terminal {
Console.ForegroundColor = selected ? ConsoleColor.Black : ConsoleColor.Gray;
Console.BackgroundColor = selected ? ConsoleColor.Cyan : ConsoleColor.Blue;
var item = Prefix + Completions [item_idx];
if (item.Length > Width)
item = item.Substring (0, Width);
@@ -490,7 +490,7 @@ namespace Mono.Terminal {
{
if (selected_item+1 < Completions.Length){
selected_item++;
if (selected_item + top_item >= Height)
if (selected_item - top_item >= Height)
top_item++;
SaveExcursion (DrawSelection);
}
@@ -1419,7 +1419,15 @@ namespace Mono.Terminal {
class Demo {
static void Main ()
{
LineEditor le = new LineEditor ("foo");
LineEditor le = new LineEditor ("foo") {
HeuristicsMode = "csharp"
};
le.AutoCompleteEvent += delegate (string a, int pos){
string prefix = "";
var completions = new string [] { "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten" };
return new Mono.Terminal.LineEditor.Completion (prefix, completions);
};
string s;
while ((s = le.Edit ("shell> ", "")) != null){