Command-line Editing Shortkeys That Fail

Aug 28, 2008
I've been trying to improve my command-line editing prowess in TakeCommand and have found a few of the shortcuts on the help reference don't work. I find the following four don't do anything:

  1. Undo (Alt + Z)
  2. Redo (Alt + Y)
  3. Delete the argument to the left of the cursor (Ctrl + Alt + L)
  4. Delete the argument to the right of the cursor (Ctrl + Alt + R)
I've checked the keyboard settings (using the OPTION) command and found they all seem to be set correctly. It seems anything involving the Alt key fails, and I wonder whether that's got something to do with Windows gobbling it up. I'm running the latest version of TakeCommand on Windows 10, the following being the output of the "ver /r" command.

TCC 27.01.23 x64 Windows 10 [Version 10.0.19042.985]
TCC Build 23 Windows 10 Build 19042

Thanks in advance for any help.
Aug 28, 2008
I confess I tested only with the left Alt and Ctrl keys, and they don't work. Using the right Alt key seems to be ignored completely in that not only does Alt + z fail to undo, it actually inserts a 'z'.
May 20, 2008
Syracuse, NY, USA
With the settings below, all four of the keystrokes you mentioned work in TCMDv27 running TCCv27 if I use the left Ctrl and Alt..

Aug 28, 2008
Aha! Now we are getting somewhere. All these years into using TakeCommand (since v1.x when I migrated from 4DOS), and I never realized I could control which of those let's-invoke-the-Windows-menuing-system keys were allocated to the command-line editor code versus the application-level code. Nice! I find I can now use the keyboard shortcuts as intended. Thank you for that.

I have one remaining issue: the undo/redo functionality doesn't seem to work as I'd expect with the newly possible options to delete arguments using Ctrl + Alt + (L|R). For example, when I call up a previous command line (by typing a few characters and the up arrow) and hit Ctrl + Alt + L, it properly deletes the last argument immediately to the left of the cursor, which appears at the end of the line by default. But when I then press Alt + Z to undo that, I get something completely unexpected. It does not undo the deletion of the argument to the left, it undoes the command line recovery from the history.

I see how if I type my few characters and hit the up arrow to restore a previous command to the editing buffer, I have to hit Alt + Z twice to undo that restoration. So maybe there are a couple of issues left to iron out? Thanks so much for all the help thus far. This is going to be very helpful for my command-line editing.
Similar threads
Thread starter Title Forum Replies Date
tmaynard How to? Control-U alias for Escape (command line editing) Support 5
A minor documentation fix - command line editing Support 0
T VIEW only works from command line Support 14
vefatica `Back quotes` - command line vs. batch file Support 5
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
D Open Windows 10 Photos app from command line Support 11
fpefpe How to? command echo in title line/bar Support 2
vefatica Command line DO with no closing parenthesis? Support 9
R Long commands retrieved from command history have blank line when wrapped Support 20
D Double Quote in TC Tool Bar Button Command line Support 3
Joe Caverly Expand all aliases on the command line Support 2
Jay Sage Cannot Postion Cursor in Command Line Using Mouse Support 7
vefatica IDE.EXE's command line? Support 19
D btm file command line augments comparing for string or math. Support 12
P Escape key no longer clears command line in v24 Support 21
J File explorer handling from command line? Support 2
M Ctrl-C when using command line history does nothing Support 2
M Command line parsing differences between cmd.exe and TCC Support 6
C Replace 1st argument on command line Support 4
K Command Line Selection Not Working Support 12
J Error running Python at command line Support 9
rps How to? Alias/Command line use of *log on/off Support 2
x13 //directive ignored on TCC command-line Support 4
J How to? max. practical command line length? Support 3
mfarah WAD Odd behaviour with command-line arguments on TCMD. Support 7
thorntonpg F1 on command line The webpage cannot be found Support 5
J Python: TCC command line parsing removes '=' equal sign characters Support 4
L Fixed console line length in Take Command 19? Support 3
C LOG entry for TCMD/TCC command line Support 15
H command line parsing question Support 5
Joe Caverly How to? Date Range in command line for 7zip /= Support 1
cgunhouse One of the Focuses of V17 Beta Testing Should Be Command Line Parsing Support 1
cgunhouse Jabber Command Line Option Being Transmitted -- Fixed with Build 42 Support 2
M Hotkey-mechanism, for doing something with the current command-line Support 4
J Passing % character through command line to .btm Support 5
vefatica Command line SETLOCAL? Support 11
BobK How to? Handling filenames with blanks at command line Support 3
CWBillow Send Command-line with prompt? Support 6
M Missing PERL command-line arguments Support 1
fpefpe WAD Python support does not process command line Support 14
vefatica SENDMAIL, command line override SMTP server? Support 2
vefatica (OT) Show desktop from command line? Support 20
M Starting Windows GUI programs from the command line... Support 10
A How to? Remove last argument on command line Support 4
nickles Reload tcmd.ini from the command line Support 11
A How to? Invoke View Clipboard from command line Support 8
ehab aboudaya How to? activate tab with same directory in command line Support 6
A Minor documentation fix ["-" on command line] Support 3
A WAD BOM printed on command line from BAT file Support 5
J command line cursor keeps reverting to overstrike Support 6

Similar threads