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
Afficher le fichier Open project: Maximus5/conemu-inside Class Usage Examples

Private Properties

Свойство Type Description
AssertNotRunning void
Start ConEmuSession
TryGetConEmuHwnd void*

Méthodes publiques

Méthode Description
ConEmuControl ( ) : System

Méthodes protégées

Méthode 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

Méthode Description
AssertNotRunning ( ) : void
Start ( [ startinfo ) : ConEmuSession
TryGetConEmuHwnd ( ) : void*

Method Details

ConEmuControl() public méthode

public ConEmuControl ( ) : System
Résultat System

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

OnGotFocus() protected méthode

protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnHandleCreated() protected méthode

protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnLayout() protected méthode

protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs args ) : void
args PaintEventArgs
Résultat void