TConsole 2.7

TConsole plug-in enables Total Commander to have embedded command interpreter window on top of  file panel.

Requirements:

Total Commander 7.5 or higher
Windows XP or higher


Installation

Add TConsole.wfx plugin in Configuration/Options|Plugins|File system plugins(.WFX).



TConsole Activation

TConsole utilizes file system plug-in interface, it is activated by selection of "TConsole" entry under "Network & Plugins" or command "cd \\\TConsole".
TConsole window is displayed on top of the active file panel. TConsole starts command shell specified by Shell.

Related options:  Shell, Start in Direct Mode, Change Console Width

TConsole Deactivation

TConsole is deactivated by switching the underlying file panel to another directory. TConsole window becomes hidden. Termination of the TConsole running shel and its child processes depends on Close Console on Hide option.

Related options:  Close Console on Hide, Brief View On Hide



Keyboard Input

There are two possible key input modes:
Command Mode input is redirected to Total Commander's command line edit box. On hitting "Enter", the contents of command line edit box is sent to the shell running in TConsole.
Direct Mode all keyboard input (except keys defined in  Forward Keys to TC) is going directly to the shell running in TConsole.

Related options: Command Mode, Direct Mode, Keyboard



Mouse Input

TConsole supports Text Selection, Clipboard operations and Context Menu  by using mouse.

If Direct Mode is active, Context Menu requires a long press on the mouse right button (short press is reserved to QuickEdit Mode Copy/Paste)

Related options: QuickEdit Mode



Text Selection

Selection of text block is done by moving mouse pointer inside TConsole window area while keeping left mouse button pressed.
Selection can be discarded by mouse left button clicking anywhere inside TConsole window.

Related options: 



Clipboard

Copy
Selected text block can be copied to the system clipboard using Hot Keys or Context Menu.
Optionally, clipboard copy can be done by  mouse right button click (ref. QuickEdit Mode).
Paste
Text can be pasted from the system clipboard at caret position using Hot Keys or Context Menu.
Optionally, clipboard paste can be done by  mouse right button click (ref. QuickEdit Mode).

Related options: QuickEdit Mode



Context Menu

Context menu is displayed by pressing mouse right button inside TConsole window or on 'TConsole' entry in 'Network & Plugins'. If Direct Mode is active, context menu is displayed after a long press on right mous button.

Menu commands
Copy
execute Copy
Paste
execute Paste
Copy & Paste
execute CopyPaste
Select All
execute SelectAll
Send Ctrl+Break
execute SendCtrlBreak
Detach Current Console
execute Detach
Synchronize Directory
execute SyncDir
Direct Mode (single line)
execute DirectSingle
Toggle Direct Mode
execute DirectToggle
Options
execute Options
About
execute About
Go Back
execute GoBack



Hot Keys

TConsole handles hot keys in Direct Mode only.  In Command Mode all key input is redirected to Total Commander.

Ctrl+Insert
execute Copy
Shift+Insert
execute Paste
Ctrl+Shift+Insert
execute CopyPaste
Ctrl+Alt+A
execute SelectAll
Ctrl+C/Break
execute SendCtrlBreak
Ctrl+Alt+D execute Detach
Ctrl+Left/Right
execute SyncDir
Ctrl+Alt+L
execute DirectSingle
Ctrl+Alt+M
execute DirectToggle
Ctrl+Alt+O
execute Options
Ctrl+Alt+Z
execute About
Ctrl+Alt+B execute GoBack



TConsole Commands


Copy
copy selected text block to the system clipboard
Paste paste text from the system clipboard to the shell at caret position
CopyPaste copy selected text block and paste at caret position
SelectAll
select all available text in TConsole window
SendCtrlBreak
send control+break key sequence to the shell
Detach
detach the active console to separate window and start a new one
SyncDir
change the current shell directory to the Total Commander source panel one (using shell "cd" command)
DirectSingle
switch to Direct Mode and automatically switch back to Command Mode after pressing "Enter"
DirectToggle
switch (toggle) between Direct Mode and Command Mode
Options
display Options dialog
About
display "About" dialog
GoBack
go back to "Network & Plugins" folder. TConsole will be deactivated (ref. TConsole Deactivation)



Options

General

Shell
Name of the shell (command interpreter) executable   (default is "cmd.exe").

Close Console on Hide
When TConsole is deactivated (ref.  TConsole Deactivation), TConsole window becomes hidden and the shell process is terminated or left running in background.
The shell running in TConsole is terminated, and on the next TConsole activation, a new shell instance will be started.
The running shell is left running in background. Screen command history is retained.

Change Console Width
Total Commander stores separate file panel width setting for Full/Brief and Comments modes. Switching the source file panel to'Comments' mode can be used as TConsole panel width preset.
Upon TConsole activation, the "Source" panel is switched to "Comments" view mode (cm_SrcComments).
Upon TConsole activation, no changes are made to the "Source" panel.

Brief View On Hide
This option depends on Change Console Width
upon TConsole deactivation, the "Source" file panel will be switched to "Brief" mode (cm_SrcShort)
upon TConsole deactivation, the "Source" file panel will be switched to "Full" mode (cm_SrcLong)

Start in Direct Mode
Default key input mode.
TConsole starts in Direct Mode
TConsole starts in Command Mode

QuickEdit Mode
A handy copy & paste mode using mouse. QuickEdit is activated by mouse right button click. If there is active selection (ref. Text Selection) in TConsole window, the selected text will be copied to the system clipboard, otherwise text from the system clipboard will be pasted at caret position.
QuickEdit mode is active
QuickEdit mode is inactive


Keyboard
Handle Ctrl/Shift+Insert
handle Ctrl+Insert and Shift+Insert (ref. Hot Keys)
ignore Ctrl+Insert and Shift+Insert

Handle Ctrl+C/Break
Active in Direct Mode only
pass Ctrl+C or Ctrl+Break to the shell running in TConsole
ignore Ctrl+C and Ctrl+Break

Scroll RightShift+Arrows
Active in Direct Mode only
scroll TConsole window by pressing right shift and arrow key
ignore RightShift+Arrows

Forward Keys to TC
Forward the listed hot keys to the main Total Commander window.
Hot key format: Modifier+Key (e.g. "Alt+F1")
Hot keys are separated by comma (e.g "Alt+F1,Ctrl+F").
Possible key modifiers: Ctrl, Shift, Alt.
Key modifier may have L (left) or R (right) prefix (e.g. LCtrl means Left Ctrl).
Keys are letters, digits, F1-F24, NUM_0-NUM_9 and the following words:
BACK, TAB, ENTER, ESCAPE, SPACE,
PAGEUP,    PAGEDOWN,   
HOME, END,   
LEFT, RIGHT, UP, DOWN,       
INSERT, DELETE,
NUM_ADD, NUM_SUBTRACT, NUM_DECIMAL, NUM_MULTIPLY, NUM_DIVIDE,
PLUS, COMMA.

Mouse
Wheel scroll (lines)
Speed of TConsole window scroll by mouse wheel (number lines at a time).

Font
TConsole dialog and menu font
Font name is in the following format: Font Face,width,height (e.g. Terminal 8,12)
[...]
Opens a standard Windows font browser dialog (only monospace fonts are allowed)
[X]
Reset to default TConsole font (Terminal 8,12)

Language
TConsole user interface (Optionsdialog, Context Menu etc) displaylanguage.



Version History


Version 2.7

Version 2.6

Version 2.2

Version 2.1

Version 2.0

Version 1.9

Version 1.8

Version 1.7

Version 1.6

Version 1.5

Version 1.4

Author


MGP Software Ltd. & maximdw
Email: tconsole@gmx.com