Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Typing ` and ^ does not work right in Take Command when using pseudoconsoles

Windows 11 Pro, TCMD 36.00.27, language: Spanish (es-es), Spanish keyboard.
  • Running TCC from outside TCMD works right.
  • Running TCC inside TCMD, with pseuconsoles disabled works right.
  • Running TCC inside TCMD, with pseudoconsoles enabled:
    When I want to type or ^ I have to retry a few times before or ^ appears (or just keep the key down until I get a few of them and then remove the unwanted ones).
 
Do those keys do something special on a Spanish keyboard?

Without ConPTY, TCMD just passes the message on to TCC. That doesn't work in a ConPTY session, as there isn't a message handler / queue. So TCMD has to convert the key and send an ANSI sequence to ConPTY. If it's a special key (function keys, arrow keys, etc.) additional processing is required. A ` or ^ character isn't anything special in English, but maybe they are in Spanish?
 
... Dead keys for entering accented letters?

Does the tilde/swung dash key ~ also act funky?
 
Excuse sending my answer as an image (from notepad), because the ` dead key is killing the formatting of this message.

1776532513341.webp
 
Try it in build 32 (already uploaded) and let me know if it's working.
It is still inconsistent. For example, this is the result of typing three times in a row the combination of dead key followed by a:

1776570582113.webp


BTW, this is all with "Pseudoconsoles (ConPTY)" enabled in the Advanced settings and "Run in Pseudoconsole (ConPTY)" not checked in the individual tab setup. But I just realized that if I disable the Advanced setting and enable it in an individual tab, the tab doesn't seem to be in a pseudoconsole, as the dead keys work and the tab is detachable...)
 
Please try it again with build 33 (already uploaded).
Dead keys seem to be working as expected now. Thanks.

The other problem I mentioned is still there: if I uncheck "Run in Pseudoconsole (ConPTY)" and enable the pseudoconsole in a tab, that tab doesn't seem to run in a pseudoconsole (as it can be detached).
 
The other problem I mentioned is still there: if I uncheck "Run in Pseudoconsole (ConPTY)" and enable the pseudoconsole in a tab, that tab doesn't seem to run in a pseudoconsole (as it can be detached).

Not reproducible here -- are you using the Run dialog to start the new tab (with ConPTY enabled)?

Type "echo %_conpty" in the new console to see if it's a pseudoconsole or not.

Note that you can "tear off" (i.e., undock) a ConPTY tab, but that is not the same as "detaching" it. Tearing off a tab will allow you to drag it around and redock it, and will show a tab label just below the caption bar (which will not exist on a detached session). An undocked tab will close when TCMD closes; a detached session will not.
 
What I do is:
  • I start TakeCommand as an administrator (that's how I always run it).
  • I disable Options / Take Command / Advanced / Advanced Options / Pseudoconsoles (ConPTY).
  • I define an startup tab in Options / Take Command / Tabs. Title is ROL, Command is TCC, Directory is D:\Rol, Run As is empty, Pasword is empty, and Run in Pseudoconsole (ConPTY) is enabled.
  • Then I exit TakeCommand, and restart it (again, as an administrator).
  • If I use Home / Run and I choose Start in ConPTY and app TCC, then in that tab, echo %_conpty returns 1 as expected.
  • However, in the ROL startup tab, echo %_conpty returns 0.

According to the help,
Pseudoconsole (ConPTY): If enabled, Take Command will default to starting new tabs using pseudoconsoles. This can be overridden in the Run dialog, or the Startup Tabs options on the Tabs page.
I would expect the startup tab ROL to be in a pseudoconsole.
 
Back
Top