Strange Line Wrapping Behavior

Aug 16, 2016
31
2
I have a 3-system license. When a command line wraps on two of my systems, everything's normal. But on one of my systems, the wrapping skips a line, like this:

Image38.jpg


When I then go to edit this line, such as changing v3 to v4, the editing occurs on the line that is left blank:

Image40.jpg


To repeat, this only happens on one of my three systems. All are running Version 27.00.18 x64.

BTW, it doesn't matter how wide my TC window is. The behavior is the same for narrow and wide widths. And as far as I can tell, all of the options are set the same on all three systems, but of course I could be missing something. This anomaly doesn't stop me from using the command line with long file names, but it is inconvenient and seems rather strange. Any suggestions for resolving the problem would be appreciated.

Thank you,
Jesse Heines
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,495
91
Albuquerque, NM
prospero.unm.edu
I think I finally understand how to reproduce this one. When InputColors is set to the defaults, long lines recalled from the command history, or pasted from the clipboard, get an extra line inserted:

option1.png


longline1.png



But when InputColors is set to anything other than the default, the issue goes away:

option2.png


longline2.png


So, if I'm right, until Rex gets this sorted, the workaround is just to set InputColors to something other than the default. Even white on black, if that's your druthers.
 
Aug 16, 2016
31
2
Thank you for your reply, Charles, but this didn't solve the problem for me.

You are certainly correct that it has something to do with how one does the command entry. If I type the long file names, you are correct that there is no blank line. But even if I change the input colors as you did, filename completion still generates the blank line when I use file name completion.

That is, if I type
Code:
ren ReunionApparel_HatReservationForm_Confirmation_v2.php ReunionApparel_HatReservationForm_Confirmation_v3.php
there is no blank line. But if I generate that rename command by typing
Code:
ren *hatres[TAB] *hatres[TAB]
using the TAB key to complete the file name, the blank line appears.

Once again, the really weird thing is that this only happens on one of my three systems, and they're all virtually clones of each other (at least as far as TakeCommand) is concerned.
 
Apr 18, 2014
301
9
I think I finally understand how to reproduce this one. When InputColors is set to the defaults, long lines recalled from the command history, or pasted from the clipboard, get an extra line inserted:

<snip>

So, if I'm right, until Rex gets this sorted, the workaround is just to set InputColors to something other than the default. Even white on black, if that's your druthers.
I don't know how you worked that one out Charles, but well done! That workaround stops the blank lines appearing on my system too.

Jesse - after you set and apply the inputcolor changes you have to quit and restart TCC for them to take effect - did you try that? Also there's another thread on this problem which you'll find here.
 
Aug 16, 2016
31
2
Whoa! You guys are incredible. Really. Thank you so much. I had this problem in Version 26, too, but I never thought to post it here. Stupid me. I though sure that it was a setting of some sort and never thought that it was a bug. I now see that I was wrong, that it is a bug, and I'm very impressed that Charles was able to track it down to at least identify its source and come up with a work-around. "Well done" indeed! :) Thanks a million guys. This is why I've been using your products for over 20 years! And Rex, do contact me when you're next in the Boston area. If the pandemic's over by then, I'll be happy to buy you dinner again. :) Until then, keep safe. -- Jesse
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,495
91
Albuquerque, NM
prospero.unm.edu
Nice one, Charles! Where does the ruler at the top of the tab come from?

That's a plugin. I thought the number of columns might be relevant. I no longer think so.

After further experimentation, it looks like turning on ANSI colors may also sidestep the issue. I normally have both ANSI colors and custom input colors, which is probably why I never encountered this issue before.
 
May 20, 2008
11,536
103
Syracuse, NY, USA
I attached a ruler and line numbers to keystrokes. I can't capture a video of a console window so here's an MP4 (zipped and attached) of my Windows Terminal version in action.
 

Attachments

  • ruler.zip
    232.6 KB · Views: 42
May 20, 2008
11,536
103
Syracuse, NY, USA
Cool!

In both versions, console and Windows Terminal, I used a lot of control sequences.

Does the game bar work for you with a console?
 
May 20, 2008
11,536
103
Syracuse, NY, USA
It works. It only captures the client area, not the window frame, so it looks a little odd. I guess that's probably by design.
Hmmm! Here, the game bar won't even appear (with Win+G) if a console has focus. I only see the little blue spinning wheel for a second ... nothing more.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,495
91
Albuquerque, NM
prospero.unm.edu
It's like an OSD window which sits on top of the tab window. Possibly a dumb solution -- I'm not very familiar with this kind of Windows programming -- but it seems to work and does what I want.
 
Similar threads
Thread starter Title Forum Replies Date
R strange bug? Support 7
F strange results Support 9
M Strange error messages from TCC in FTP copy Support 7
M Another possibly strange remote registry issue Support 5
forbin Strange handling of [nonbright] magenta background (v22) Support 2
N Fixed Strange dir behavior Support 6
vefatica REGDIR, strange error message Support 7
T WAD Strange Unexpected "features" in the Debugger Support 2
P Strange mouse behavior with list Support 2
vefatica Strange tcc.exception.log Support 7
vefatica A strange one Support 0
D Strange DO behavior with /O Support 5
Glenn Bowes Strange text at startup Support 5
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
vefatica Big numbers, strange errors Support 1
aedthuio Strange... lpksetup Support 4
CWBillow dir /4 strange Support 2
D Strange issue with FOR loop Support 15
MikeBaas Strange prob with %@replace.. Support 4
vefatica OT: strange files in %TEMP Support 10
Dan Glynhampton Documentation v15 help: Strange links in @INT topic Support 0
R WAD Strange output from "memory" command Support 1
M Yet another strange something re something called "@TCONVERT" Support 8
Roedy How to? Strange colours Support 9
M WAD Strange "Start" misbehavior... Support 10
vefatica Very strange console font corruption Support 3
Steve Pitts Strange problem with FREE Support 10
A strange error in alias Support 9
newgeekorder Debugger IDE - strange tab and parameter behaviour Support 1
Exolon Strange Prompt. Support 6
vefatica Strange folders Support 1
T Strange CPU value Support 3
J Strange error: unset /s Support 14
M Strange behavior... Support 2
CWBillow Strange happenings Support 2
B Strange handling of a .BAT file Support 5
vefatica Strange behavior reloading SHRALIAS sav files. Support 1
J ASSOC / FTYPE strange error message Support 3
D Strange crashes in @CRC32 and @MD5 Support 9
Charles Dye Strange output, here-doc redirection, TYPE, //UnicodeOutput=Yes Support 6
S Strange CHKDSK behavior Support 6
vefatica Strange results with CP 1252 Support 12
S Strange REN problem - non-English characters Support 3
dcantor Strange status in ACTIVATE command Support 0
C blank line in copy ... results Support 9
old coot LEAVE appears to affect command-line arguments Support 11
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
Phileosophos Command-line Editing Shortkeys That Fail Support 6

Similar threads