TConsole plugin

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

2 VadiMGP
No, i told about conole screen buffer size in chars!
Here is a link to a small jpg of the settings I am using:
http://www.jfcinc.net/Interfaces/msdosclip.jpg
Notice these settings are for the detached window, not the embedded window. It's the embedded window that isn't displaying the text.

Which of these should I change?
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2JohnFredC
Wow! :shock: 1152x864! Unbelivable!

Now, in Layout tab set Screen Buffer Size:
Width: 80
Height: 200

and Window Size:
Width: 80
Height: 25
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

2VadiMGP

That worked! Now I can use your plugin the way it was intended.

This is great!

Sorry to be slow about intrepreting your instructions concerning the screen buffer. You were right all along.

cm_ExecuteDOS is still disabled, though that won't be a problem, now.

Thanks very much for takling the time to help me!
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2JohnFredC
Well, Good news! :D
Let go on. Explain, please, what you mean "cm_ExecuteDOS is disabled"?
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

Hi VadiMGP
what you mean "cm_ExecuteDOS is disabled"?
The cm_ExecuteDOS is the internal TotalCommander command to start the DOS window.

It's on the the standard TC "Commands" menu labeled "Run DOS" and ceases to work after I install TConsole.

If I uninstall TConsole, then the "Run DOS" menu becomes functional again.

Hope this helps!
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

TConsole 1.4 is available:
ftp://mgppublic:public@mgpsoft.com/tconsole14.zip

Main changes are:
- Added option "Close on Hide". Uncheck it to save console state between switch onto/from console window.
- Added hotkeys to switch on/off secure mode (Alt+Ctrl+1/2)
- Added option "Start in secure mode"
- Added blinking cursor to console window when focus belong to console
- Fixed bug with big screen buffer size

JohnFredC, try to run cmd.exe when focus belong to neighbour panel.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

this plugin is a very good one, the new release 1.4 is a real improvement.


minor bug: hotkey Ctrl+Alt+2 writes the "²" to the console window.

Some suggestions:
- window standard console doesn't use standard hotkeys for cut, copy and paste. I would to see this in a future release fo this plugin. Well first we need a selection mode function including a hotkey to toggle between select and edit mode.

Add a shortcut for copy to clipboard (which is copy whole console content to clipboard)

Thanks a lot for creating this plugin!
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

I really appreciate this plugin. It could become very useful.

1. is it possible to add the ability to choose background and font colors?
Or better: will it be possible to highlight DOS commands with colors?
2. Is it possible to add a autocomplete function to complete commands and paths?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

hotkey Ctrl+Alt+2 writes the "²" to the console window
I cannot reproduce this bug nor in "normal" nor in secure mode. Can you give me scenario causing this behaviour?
is it possible to add the ability to choose background and font colors?
I explained it before: TConsole doesn't use own color settings.
Look at example (taken from russian Total Commander forum) :D
Image: http://sukerrussia.newmail.ru/far_in_TC.jpg
TConsole takes the real colors from the real console. You can use standard "color" command.
Is it possible to add a autocomplete function to complete commands and paths?
In the secure mode it works. In the normal mode all commands are entered from the TC's command line, therefor not under TConsole handling.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2fabiochelly

1. for example use "cmd.exe /T:9E" as your shell

type color /? to get an explanation

2. Unfortunetely setting this up is quite complex... (see end of this posting)

2VadiMGP

You could improve your plugin if you add this options (auto completiong and color setup) to your config dialog.

Auto completion config hierarchy:

1. User started the console using cmd.exe /F:ON
Auto completion is enabled. Ctrl+D and Ctrl+F can be used for auto completion.
2. User started the console using cmd.exe /F:OFF
(/F:OFF is default)
cmd.exe searches
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\CompletionChar
If the entry exists and is valid it will used as the completion char.
3. User started the console using cmd.exe /F:OFF
(/F:OFF is default)
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\CompletionChar doesn't exist.
cmd.exe searches
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\CompletionChar
If the entry exists and is valid it will used as the completion char.


Please add a checkbox on/off and a combobox to choose the completion char. Save the on/off setting and the char to the INI-file (which should be located in the same dir as the current Totalcmd.ini ;-)). When starting TConsole read the registry key(s) and set them up if necessary. This way the settings stays independent from the registry.


a few more small things to think about:
-German characters appear in another font (ö,ä or ü) tested several fonts.
- Saving start in secure doesn't work always
- Ctrl+S works fine, but what about Ctrl+C?

2VadiMGP
I cannot reproduce this bug nor in "normal" nor in secure mode. Can you give me scenario causing this behaviour?
When in normal mode Ctrl+Alt+2 is fetched by TC (no ² appears)
When in secure mode and pressing Ctrl+Alt+2 ² appears in the TConsole window and secure mode is left.

What is non secure mode for? All keys are fetched by TC (I'm using search with letters dialog)
User avatar
corny
Junior Member
Junior Member
Posts: 96
Joined: 2003-02-07, 10:06 UTC

Post by *corny »

2VadiMGP
TConsole takes the real colors from the real console. You can use standard "color" command.
Hi,

I don't see that TConsole uses the real colors; I've set them to blue on white but TConsole displays white on black :-(

One other remark, when word- and/or dircompletion is set to use the TAB key, completion doesn't work in TConsole :-(
Regards,
Cornelis
User avatar
Shanny
Member
Member
Posts: 177
Joined: 2003-02-24, 08:38 UTC

Post by *Shanny »

It's a great plugin. But I find it doesn't support double-byte character, such as Chinese, so can't work correctly on these OS.
see
http://shanny.dhs.org/tmpimg/snap.gif
TCEE, TCPP, F4Menu -- Shanny
User avatar
za222
Member
Member
Posts: 146
Joined: 2003-03-11, 17:19 UTC
Location: Germany

Post by *za222 »

I found a little bug:

When you change the option "start in secure mode" and press close the plugin doesn't save it ("close console on hide" works)

You have to edit the ini-file manualy
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

2VadiMGP

Hey Man...

Thanks for the new version of TConsole. Now when I run the TC command cm_ExecuteDOS , the cursor moves to the Console if it is open, and if TConsole is not open, the DOS window opens.

I have no more issues to report. Everything seems to work fine.

Thanks!
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Shanny
I cannot see your picture. Browser returns "Document contains no data" :( Can you send it to me? Anyway i havn't experience DBCS. Can you explain where it used in real console? TConsole retrieves console content and shows it as Unicode chars (if you use Unicode font in TConsole).

2JohnFredC Avoid to run cm_ExecuteDOS while TConsole is active. It cause to running spare instance of cmd.exe
corny wrote:when word- and/or dircompletion is set to use the TAB key, completion doesn't work in TConsole
You want to say the ploblem with TAB key only? With other key autocompletion works?
Post Reply