Long commands retrieved from command history have blank line when wrapped

Apr 18, 2014
301
9
TCC (x64) Version 26.02 Build 42 [26.02.42]
Microsoft Windows 10 Pro (2004) [10.0.19041.388]

I think this problem started with build 42 (possibly a side effect of the fix for no line wraps at the bottom of the screen buffer). It doesn't happen in version 25, but I haven't gone back to build 41 to confirm if it happens there. The problem occurs both in standalone TCC windows and TCC tabs within TCMD.

If there is a long command in the command history which, when recalled is longer than the width of the TCC window, a blank line appears in the command when it wraps. As an example, if I do a directory command for with a file that has a longish path and name...

Code:
d:\>dir /b c:\Windows\System32\DragDropExperienceCommon.dll
DragDropExperienceCommon.dll


Then I make the TCC window narrower such that the above command line has to wrap, and press the UP arrow to retrieve the command from history, a blank line appears:

Code:
d:\>dir /b c:\Windows\System32\DragDropExperienceComm

on.dll
 
Jan 12, 2014
438
7
Switzerland, SO
Here, it works correctly with same system and TCMD version as you, tried in TCC:

history_wrapping.png
 
May 20, 2008
11,543
104
Syracuse, NY, USA
Happens for some; doesn't happen for others. We need to figure out how to MAKE it happen or PREVENT it from happening. Any ideas?

1597936209458.png
 
Jun 26, 2015
10
0
Copied (CTRL-C) in Texteditor (Textpad). If I paste with SHIFT-INS the result is:
1598009209624.png

and when I get the command from history (CURSOR UP):
1598009282564.png

It's only a 'display problem', the command is executed correctly. (ps: unknown command is correct. the programm tf.exe does not exist on that location)
 

Attachments

  • 1598009138061.png
    1598009138061.png
    25.2 KB · Views: 98

TQ5

Dec 22, 2020
6
0
I have exactly the same problem. I have Take Command v26.02.43 x64.

1608688932220.png


Here's what happens when I type the command and then type the file:
1608688979232.png

This makes it difficult to correct typing since the cursor is above the text. According to my TakeCommand (check for updates), my software is up to date, and Windows 10 is up to date (version 10.0.19042.685).

This makes TakeCommand more difficult to use. What can be done? Thanks.
 
May 20, 2009
293
5
57
ITALY
In my case I paste a long command line from clipboard and it seems good and is executed correctly.
When I press arrow-up to recall that line there are empty lines and the cursor is in the middle of them.
I have "TCC 27.00.16 x64 Windows 10 [Version 10.0.19042.685]".

Regards

Rodolfo Giovanninetti



long_paste.png
 

TQ5

Dec 22, 2020
6
0
I am having the same problem (see screenshots above) and I'm not sure how to check whether I'm in legacy console mode or new console mode(see comment from December 22, TQ5). I have TC v26.02.43 x64, and it is the current update of V26. Thanks for your help.

This does not occur in my version of TC v22.00.40 x64 on a Surface Pro 7.
 
Last edited:
Apr 2, 2011
1,463
10
54
North Carolina, USA
@TQ5
From Legacy Console Mode – Windows Desktop - Windows Console
"
To use Legacy Console mode, first open any console hosting window. This is typically done by launching one of the command interpreters CMD or PowerShell.


Right-click on the application title bar and choose the Properties menu option. Choose the first tab, Options. Then check the box at the bottom of the page describing Use legacy console. Press the OK button to apply.


The setting can be reverted by returning to the same property sheet menu and unchecking the box then pressing OK."
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,496
91
Albuquerque, NM
prospero.unm.edu
@TQ5
From Legacy Console Mode – Windows Desktop - Windows Console
"
To use Legacy Console mode, first open any console hosting window. This is typically done by launching one of the command interpreters CMD or PowerShell.


Right-click on the application title bar and choose the Properties menu option. Choose the first tab, Options. Then check the box at the bottom of the page describing Use legacy console. Press the OK button to apply.

And after that, I think you need to close and restart the console program. Or close and restart Take Command. I think that setting is only checked when starting a console program -- though I could be mistaken.
 

TQ5

Dec 22, 2020
6
0
Thanks for the suggestion. Changing in and out of legacy mode didn't make a difference for TC v26.02.43 x64.
The problem described above (a blank line between two parts of a command line that is too long. does not occur in my version of TC v22.00.40 x64 on a Surface Pro 7.
 

TQ5

Dec 22, 2020
6
0
SOMEWHAT GOOD NEWS. I uninstalled V26.02.43 x64 and installed the previous version v26.01.40 x64 and I don't have this problem. As noted, I didn't have in in V22 so it is a bug introduced after V26.0.140. Hope this helps them figure it out
 
May 16, 2017
2
0
I have the same issue with TCC 27 (TCC 27.00.18 x64). It happens when pasting a filename from explorer or just using completion. Any wrap adds the blank line. If you change the command line with the arrows to a different line in history, and the other entry is only one line the 2nd line does not get removed. It happens within Take Command or in a console window.
 

TQ5

Dec 22, 2020
6
0
For me, V 26.02.43 x 64 and TC 22 (on another computer) did not have this problem. Since this is an ongoing problem, I wish JP Soft would do something. I will not upgrade until I know this is fixed in the newer version.
I would like to know how to directly ask JP Software.
 
Apr 2, 2011
1,463
10
54
North Carolina, USA
For me, V 26.02.43 x 64 and TC 22 (on another computer) did not have this problem. Since this is an ongoing problem, I wish JP Soft would do something. I will not upgrade until I know this is fixed in the newer version.
I would like to know how to directly ask JP Software.
Either email support (at) jpsoft.com or tag @rconn
 

TQ5

Dec 22, 2020
6
0
@rconn
Thanks for the helpful reply, Charles. I e-mailed support@jpsoft.com and haven't heard yet, but it has only been a week.
For me, V 26.02.43 x 64 and TC 22 (on another computer) did not have this problem. Since this is an ongoing problem, I wish JP Soft would do something. I will not upgrade until I know this is fixed in the newer version.
 
Similar threads
Thread starter Title Forum Replies Date
Charles Dye TYPE /X double-spacing long lines Support 2
vefatica Long file names - a few questions Support 2
nickles Fixed Executing long command lines in a batch generates file name errors Support 16
Stefano Piccardi echoerr truncates long lines Support 9
Roedy WAD Minor long-standing install problems Support 6
W Copy+Paste without breaking long lines as default? Support 1
M An issue I really don't understand and is too long and detailed for this "Title" line... Support 16
vefatica @LINES, long lines, TCC disappears Support 7
Q tcc.exe crash with long command line Support 10
I TCC crashes on gosub after long command line Support 0
nickles OPTION "trims" long ColorDir directive Support 1
L Very long startup times - solved for me Support 15
L File completion window saws long paths Support 3
A TCMD takes very long to start up Support 19
vefatica Console not redrawn in BTM or with multiple commands Support 4
Joe Caverly Documentation COMMANDS in Version 27 help Support 8
kb6ojs ALIAS with multiple commands? Support 9
vefatica Timing commands with $= in the prompt? Support 16
A Fixed v25 regression: Parameter expansion fails in piped commands Support 2
A Key Commands missing? Support 3
Dick Johnson New database commands Support 8
F Regexes in REN/MOVE/… commands seem to not work at all Support 3
gentzel Bug launching external commands in 20.11.43 Support 11
M Keywords for commands, functions, internal variables Support 3
M Disable commands? Support 2
D Fixed 20.10 strangeness with external commands Support 9
thedave Problem chaining piped FIND commands in BTM Support 7
D Some commands are not displaying their command dialog Support 2
C MONITOR commands alter tab title when triggered Support 0
Alpengreis Documentation TC Help v18.x "Commands by Category" is incomplete Support 0
R How to? Launch and execute commands in tcmd.exe through MSBuild Script. Support 3
D WAD TASKBAR window commands confuses our friends at MS Support 4
Stefano Piccardi list of TCC commands for external editors Support 4
I tab completion with directory commands Support 7
I most used commands Support 2
mikea How to? TCC and ftp:// commands Support 7
R Override TCC internal commands Support 2
S Directory history entries from /S option of various commands Support 2
M A simple question related to the "dir" (and "pdir") commands... Support 5
R TC 13 / Using TCDIALOG to exit commands Support 4
J syntax problems multiple commands (command & command) Support 4
C User error with low level file* commands Support 8
S Need help to execute TCC commands on another system Support 6
electrotype keyboard shotcuts to send commands to a TCC tab? Support 8
Charles Dye Updated _bat.schclass with v11 new commands/keywords Support 1
L Vista 64 bits missing commands Support 1
deleyd Commands to launch Control Panel items? Support 10

Similar threads