Text selection in Take Command tab window

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,469
88
Albuquerque, NM
prospero.unm.edu
I seem to have lost the ability to select text in a TC tab window with shift-left, shift-right, shift-end, and so on. I'm only seeing this in Take Command; it works fine in a standalone console window.

Anybody else seeing this?
 
May 20, 2008
11,432
99
Syracuse, NY, USA
I seem to have lost the ability to select text in a TC tab window with shift-left, shift-right, shift-end, and so on. I'm only seeing this in Take Command; it works fine in a standalone console window.

Anybody else seeing this?

I see it too. In addition, if I Shift-Right/Left, the cursor over-shoots its mark, unlike simply Right/Left. V12 has this overshoot, too (but does select text).
 
May 20, 2008
11,432
99
Syracuse, NY, USA
I see it too. In addition, if I Shift-Right/Left, the cursor over-shoots its mark, unlike simply Right/Left. V12 has this overshoot, too (but does select text).
I should have added ... the cursor over-shooting (not stopping on KEY_UP) happens only in TCMD, not in a TCC console.
 
May 20, 2008
11,432
99
Syracuse, NY, USA
With build 46, it now selects, but the selecting doesn't stop immediately when the key is let up (Shift-Left/Right).
 
May 20, 2008
11,432
99
Syracuse, NY, USA
Not reproducible here (tried on four systems).

I'm 99.9% sure this is a configuration issue with your keyboard (repeat rate set too fast, so the keyboard buffer is filling up?).

It's at about 30 characters per second and it doesn't misbehave in any other program. If I hold down Shift-Left and lift the Left key after about 90 characters have been selected, it continues to select about another 80 characters. As I said earlier, it works perfectly with plain Left/Right but not with Shift-Left/Right. Shift-Up/Down stops instantly when I lift the key.
 

rconn

Administrator
Staff member
May 14, 2008
12,367
150
If I hold down Shift-Left and lift the Left key after about 90 characters have been selected, it continues to select about another 80 characters.

Which is exactly what it will do if you've filled your keyboard buffer with more characters while TCC is processing the previous characters. 30 cps is waaaay too much if you're planning on holding the key down for any length of time > .1 second (and then guessing when to release it).

As I said earlier, it works perfectly with plain Left/Right but not with Shift-Left/Right


That's hardly surprising; Shift-Left / Shift-Right do about 100x as much in code as Left/Right, and there is a lot of interprocess communication between TCC and TCMD (in order to update the tab window and notify TCMD of the selection). Are any of your other programs doing block marking with Shift-Left / Shift-Right -- and while transmitting all those updates to another application?

The only thing I could do to fix your system would be (1) get you a faster cpu; (2) get you a faster video card, or (3) disable your keyboard buffer.
 
May 20, 2008
11,432
99
Syracuse, NY, USA
Which is exactly what it will do if you've filled your keyboard buffer with more characters while TCC is processing the previous characters. 30 cps is waaaay too much if you're planning on holding the key down for any length of time > .1 second (and then guessing when to release it).



That's hardly surprising; Shift-Left / Shift-Right do about 100x as much in code as Left/Right, and there is a lot of interprocess communication between TCC and TCMD (in order to update the tab window and notify TCMD of the selection). Are any of your other programs doing block marking with Shift-Left / Shift-Right -- and while transmitting all those updates to another application?

The only thing I could do to fix your system would be (1) get you a faster cpu; (2) get you a faster video card, or (3) disable your keyboard buffer.
Well, I don't really care. I only fire up TCMD to test things. But it's an ugly artifact and I can't believe I'm the only one affected by it.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,469
88
Albuquerque, NM
prospero.unm.edu
Working as expected in build 46. Thank you, Rex.

I do see some slight 'overshoot' as Vincent describes. I don't consider it either surprising (this is a netbook, Atom N450 processor) nor a problem -- for selecting large runs, I never hold down Shift-Left or Shift-Right; I select words using the Control key, or else select to the end of the line with Shift-End or Shift-Home. (Nor do I generally run Take Command on this small-screened machine!) If older builds behaved the same way, it was never important enough to rise to my conscious attention.
 
Feb 23, 2012
240
3
I reproduce this problem. In TCC, the shift-arrows select text on my command line as expected, but in the TC tabbed environment, shift-left and shift-right just act as the left and right arrows, moving the cursor without selecting anything. I'm running an intel core i7 (with only 0-5% CPU load while I tried the shift-arrows) so I don't think it's a matter of a slow CPU. Windows 7 x64. Is there any sort of debugging setting that I can turn on to provide you with more details?
By the way, I notice that shift-up, shift-down, shift-pgup, and shift-pgdown don't work to select rows or pages of text, even in TCC. Is this by design? (PowerCmd supports this, and I often use it in other apps, too, like MS Word).
 
Feb 23, 2012
240
3
Ah, sorry, I didn't see that build 46 was available. I have just installed it and the shift-right and shift-left problem has been fixed. Thank you Rex! (And thanks, also, for the the UTF8 TCMD.ini option. It works great!)
Still wondering though about the shift-up, shift-down, shift-pgup, and shift-pgdown - are these not implemented by design, or would it be worth suggesting it as a feature request?
 

samintz

Scott Mintz
May 20, 2008
1,503
16
Solon, OH, USA
The overshoot issue has been there for a long time. It's not new to build 46. It's a nuisance and I get bit by it every once in a while. I mostly select text using the mouse, but sometimes it's easier using the keyboard. FWIW - TCMD is the only product I've ever used that has this issue. I find it hard to believe that on a modern PC operating over 2000 MHz that the software can't keep up with 30 cps.
 

rconn

Administrator
Staff member
May 14, 2008
12,367
150
I find it hard to believe that on a modern PC operating over 2000 MHz that the software can't keep up with 30 cps.

Better learn to believe it -- Windows IPC is not fast.

FWIW - TCMD is the only product I've ever used that has this issue.

You probably don't have a lot of other applications that have to talk to another app in order to move the mouse & highlight text.

But for the next build, I've adoped the #3 solution in my previous message to Vince -- every time TCC processes a Shift-Left or Shift-Right key, it will flush the keyboard buffer. That should solve the problem for users who like to lean on their keyboards for extended periods.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Tab (^t) in @FILEWRITE's text Support 2
R Bug TPIPE's pdf to text conversions don't work Support 2
Joe Caverly Using TYPE with non-English text Support 22
M Goto fails when a text endtext block precedes the code Support 5
Joe Caverly No blank line in TEXT...ENDTEXT in a LIBRARY function Support 8
S INPUT fails if the entered text contains pair of square brackets Support 6
Alpengreis List command: text truncated in find box (german) Support 9
vefatica Text invisible in v25 Support 10
S How to? What's the maximum size of the thread text ? Support 5
E Text copy bug Support 1
S FFIND text that includes " Support 7
S Setting Tabs=Bottom makes text turn black Support 6
Joe Caverly Multiple Text Searches at once using FFIND or TPIPE Support 4
AndrewJ TakeCommand v23 + ANSI color sequences leads to black on black text Support 6
D Grabbing html text with @line Support 3
M TCC screen text bright colors not as bright in 24 as 23 Support 5
vefatica Find Files/Text dialog: does it work? Support 0
Alpengreis Installer: text is still truncated in german language Support 2
Peter Murschall IDE destroys Text on Ctrl-U/Ctrl-Shift-U Support 12
WinLanEm Read Cyrillic text from a file Support 12
Charles Dye OSD loses ampersands in text Support 2
R How to? Display text same as in CMD Support 14
Glenn Bowes Strange text at startup Support 5
M Fixed Cannot use the "Browse..." function in "Find files/text" dialogbox Support 2
Peter Murschall WAD FOR reads Text in ASCII !??!? Support 7
B Documentation Reference/Windows X64: Redundant text at the end Support 0
Joe Caverly LIST /T (search for Text) Support 2
nikbackm How to? Find duplicate lines in text file Support 0
J Input text converts to uppercase Support 1
T How to? Select and Delete text Support 6
vhodro How to? Select text Support 10
D Highlighted Text Color? Support 2
vefatica Fixed No text in List View! Support 4
D Removing text with TPIPE Support 2
Frank locked file after "text > ..." Support 3
Joe Caverly Copying text of MSGBOX Support 0
Stefano Piccardi TPIPE and word to text conversion Support 4
A How to? filter text stream with a regular expression Support 11
rconn Full text instant email notification Support 31
WadeHatler Any way to restore the Text Based "Select File" Windows in TCC Support 2
Jay Sage Function to Return Selected Text Support 2
mdwyer @replace - global use in a text file Support 3
E Line break in msgbox text Support 3
D Force For to treat set of values as text, not files Support 3
L command grouping with TEXT...ENDTEXT Support 1
R Misalignment of text Support 2
Jay Sage How Can SENDMAIL Create Messages with Plain Text and HTML Support 2
dcantor Help text for Date Formats Support 0
A Selecting text is very dificult with a background image Support 1
P if and text: bug or feature? Support 2

Similar threads