namespace Mono.Terminal {
public class LineEditor {
- static StreamWriter log;
+ //static StreamWriter log;
// The text being edited.
StringBuilder text;
public static class InteractiveShell {
static bool isatty = true;
- static bool dumb;
static public ArrayList using_alias_list = new ArrayList ();
static public ArrayList using_list = new ArrayList ();
public static Hashtable fields = new Hashtable ();
- static Thread invoke_thread;
-
static int count;
static string current_debug_name;
#if NET_2_0 && !SMCS_SOURCE
static Mono.Terminal.LineEditor editor;
+ static bool dumb;
+ static Thread invoke_thread;
static void ConsoleInterrupt (object sender, ConsoleCancelEventArgs a)
{
static void SetupConsole ()
{
+ string term = Environment.GetEnvironmentVariable ("TERM");
+ dumb = term == "dumb" || term == null || isatty == false;
+
editor = new Mono.Terminal.LineEditor ("csharp");
Console.CancelKeyPress += ConsoleInterrupt;
invoke_thread = System.Threading.Thread.CurrentThread;
#else
static void SetupConsole ()
{
- dumb = true;
+ // Here just to shut up the compiler warnings about unused invoking variable
+ if (invoking)
+ invoking = false;
}
static string GetLine (bool primary)
static void InitTerminal ()
{
isatty = UnixUtils.isatty (0) && UnixUtils.isatty (1);
- string term = Environment.GetEnvironmentVariable ("TERM");
- dumb = term == "dumb" || term == null || isatty == false;
SetupConsole ();