All pastes #802768 Raw Edit

Stuff

public text v1 · immutable
#802768 ·published 2007-11-30 17:15 UTC
rendered paste body
                        if( ( (int)Environment.OSVersion.Platform == 4 || (int)Environment.OSVersion.Platform == 128 ) && String.IsNullOrEmpty( Environment.GetEnvironmentVariable( "DISPLAY" ) ) )
                        {
                                Console.Error.WriteLine( "LINUX/UNIX system detected, but unable to access X11 display\n\nWill continue in text-based mode\n" );
                                ArgsList.Add( "--curses" );
                        }
                        if( !ArgsList.Contains( "--curses" ) )
                        {
                                Application.Init( );
                                OSCTool3.GTK.SplashScreen Splash = new OSCTool3.GTK.SplashScreen( );
                                Splash.Show( );
                                Application.Run( );
                        }
                        else
                        {
                                OSCTool3.Curses.SplashScreen.Run( );
                                Mono.Terminal.Application.Init( false );
                                OSCTool3.Curses.Main Main = new OSCTool3.Curses.Main( OSCTool3.Curses.SplashScreen.ModulesList );
                                Mono.Terminal.Application.Run( Main );
                        }
                }