ConEmu-Inside or Embedding
The ‘Inside’ mode allows to run ConEmu-Maximus5 inside any other window.
- As a pane of Windows Explorer - select from context menu of drive/folder/file item ‘ConEmu Inside’ (register it first and inside your Explorer window selected shell (cmd/powershell/bash) would be started in the current folder.
- As child window inside any desired window.
This mode may be used to implement handy and powerful terminal
inside other products, for example GitExtensions.
Just start ConEmu with switch
Configuration for use inside Windows Explorer
The mode was inspired by the question ‘How to embed PowerShell into Explorer or Explorer-like tool’?
Add item ‘ConEmu Inside’ into Windows ‘Explorer’ context menu, it will open ConEmu as child window inside ‘Explorer’ window. It’s similar to ‘ConEmu Here’ - working folder will be current folder from ‘Explorer’ window.
Group ‘ConEmu Inside’
You may create several Explorer’s context menu items and view/edit previously defined items (just choose desired item in the ‘Menu Item’ list).
Option ‘Sync current directory (Explorer > ConEmu)’
At the moment, the option is not stored in the Settings dialog, but written as ConEmu command line option when you press ‘Register’ button. While Inside mode StatusBar shows ‘Sync’ column to turn synchronization On/Off.
The idea of the option is that ConEmu will monitor current folder in the
Explorer window and synchronize it with the shell, by executing
cd /d ...
in the console.
You may define another command for other shell, for example if you use ‘bash’
the command may be:
Note for WinXP/Win2k3. You have to show full active folder path in the Explorer window title.
Run from Explorer window
In this mode ConEmu may be started from Explorer’s context menu. The default name of menu item is ‘ConEmu Inside’, but you may choose any other name, or create several items for different shells.
NB This mode requires some free space (Details, Preview or Status areas) to ‘inject’ terminal inside it.
|The panel ‘Tip of the Day’.
Explorer’s menu ‘View’ > ‘Explorer Bar’ > ‘Tip of the Day’.
|Windows 7||Increase the height of the status area or turn on preview area.|
|Windows 8||Turn on either ‘Preview pane’ or ‘Details pane’.|
Hint If you hold ‘Shift’ pressed while starting ConEmu from menu item, ConEmu would start the console ‘As Administrator’.
If ConEmu was already started in the Inside mode, new console would be started as new ‘Tab’. But TabBar is not shown by default (you may turn it on in Settings), so you may switch tabs through clicks on the StatusBar’s field ‘ActiveCon/TotalCount’.
Run Inside third-party applications
You (user or developer) may start ConEmu as child terminal window.
The only thing you shall implement or provide is some child window,
which ‘HWND’ you pass as ConEmu.exe switch
when you run the terminal.
HWND is hexadecimal window descriptor.
There is sample conemu-inside project which demostrates how you may create and control child terminal.
ConEmu command line switches
||Automatic mode. Used to run ConEmu in the Explorer window.
ConEmu will search for appropriate parent process window suitable to embed into.
||Same as ‘-inside’ but you define exact Process ID, in which window ConEmu must integrate.
PID is a decimal process identifier.
||Directly specified window handle (HWND) to embed into. Unlike automatic mode ConEmu will cover all client area of this HWND.
HWND - window descriptor (hex).