Пример #1
0
        public iConsoleThreadScreen(iConsoleHandle handle, string parentPipe)
            : base()
        {
            _windowReader = new iConsoleWindowReader();

            Start(this, handle, parentPipe);
        }
Пример #2
0
        protected static void Start(iConsoleThread consoleThread, iConsoleHandle handle, string parentPipe)
        {
            consoleThread._handle = new iConsoleHandle(handle);

            consoleThread.PipeName = parentPipe;

            consoleThread._theThread = new Thread(consoleThread.ThreadProcedureInternal);

            consoleThread._theThread.Start();

            s_threadList.Add(consoleThread._theThread);
        }
Пример #3
0
        public iWin32Console()
        {
            // this will fail if we already have a console
            // we could test for console existence but
            // it's easier to just try and create
            AllocConsole();

            _consoleHwnd = GetConsoleWindow();

            _outputBuffer = new iConsoleHandle(OpenOutputBuffer());

            _inputBuffer = new iConsoleHandle(OpenInputBuffer());
        }
 public iConsoleThreadInput(iConsoleHandle handle, string parentPipe)
     : base()
 {
     Start(this, handle, parentPipe);
 }