C# Class ConEmu.WinForms.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.

Inheritance: System.Windows.Forms.Control
ファイルを表示 Open project: Maximus5/conemu-inside Class Usage Examples

Private Properties

Property Type Description
AssertNotRunning void
Start ConEmuSession
TryGetConEmuHwnd void*

Public Methods

Method Description
ConEmuControl ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnGotFocus ( EventArgs e ) : void
OnHandleCreated ( EventArgs e ) : void
OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
OnPaint ( PaintEventArgs args ) : void

Private Methods

Method Description
AssertNotRunning ( ) : void
Start ( [ startinfo ) : ConEmuSession
TryGetConEmuHwnd ( ) : void*

Method Details

ConEmuControl() public method

public ConEmuControl ( ) : System
return System

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

OnGotFocus() protected method

protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs
return void

OnHandleCreated() protected method

protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs
return void

OnLayout() protected method

protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs args ) : void
args PaintEventArgs
return void