C# (CSharp) ConEmu.WinForms Namespace

Nested Namespaces

ConEmu.WinForms.Util

Classes

Name Description
AnsiLog Manages reading the ANSI log output of the conemu and firing events with its data to the user.
AnsiStreamChunkEventArgs Holds the new chunk of the console ANSI stream.
ConEmuConstants
ConEmuControl

This is a console emulator control that embeds a fully functional console view in a Windows Forms window. It is capable of running any console application with full interactivity and advanced console functions. Applications will detect it as an actual console and will not fall back to the output redirection mode with reduced interactivity or formatting.

The control can be used to run a console process in the console emulator. The console process is the single command executed in the control, which could be a simple executable (the console emulator is not usable after it exits), or an interactive shell like cmd or powershell or bash, which in turn can execute multiple commands, either by user input or programmatically with ConEmuSession.WriteInputText. The console emulator is what implements the console and renders the console view in the control. A new console emulator (represented by a RunningSession) is Start">started for each console process. After the root console process terminates, the console emulator might remain open (see Start spawns a new console emulator for a console process in it. You cannot run more than one console emulator (or console process) simultaneousely.

ConEmuSession

A single session of the console emulator running a console process. Each console process execution in the control spawns a new console emulator and a new session.

When the console emulator starts, a console view appears in the control. The console process starts running in it immediately. When the console process terminates, the console emulator might or might not be closed, depending on the settings. After the console emulator closes, the control stops viewing the console, and this session ends.

ConEmuSession.HostContext Covers parameters of the host control needed to run the session. ConEmuStartInfo tells what to run and how, while this class tells “where” and is not directly user-configurable, it's derived from the hosting control.
ConEmuStartInfo Describes the parameters for running the console process in the console emulator, including the command line to run.
ConsoleProcessExitedEventArgs Gives the exit code of the console process when it exits in the console emulator.
GetInfoRoot Handles the GetInfo GuiMacro for the Root command.
GuiMacroBuilder Fluent API for constructing a GUI macro. Start with the running ConEmuSession, call ConEmuSession.BeginGuiMacro.
GuiMacroExecutor

Implements calling GuiMacro to the remote ConEmu instance, and getting the result.

Got switching implementation for out-of-process (classic, via a console tool) and in-process (new feature which loads the helper comm DLL directly) access.

GuiMacroExecutor.GuiMacroException
GuiMacroResult A result of executing the GUI macro.
Resources