Welcome!

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

SignUp Now!

Documentation "Copy+Paste+run" question

Jul
441
6
Recalling a command from History: Dir displayed as expected.
Code:
v22.00.26_$*dir /Nfv /odr function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinpu
t.sav

 Directory of  D:\tcmd v22\function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinp
ut.sav

12/04/2017  14:46               2  JPcommandInput.sav
12/04/2017   1:26         210,628  history.sav
12/04/2017   1:26           5,374  function.sav
12/04/2017   1:26             212  dirhistory.sav
12/04/2017   1:26          74,648  alias.sav
             290,864 bytes in 5 files and 0 dirs    307,200 bytes allocated
Using the command Input window "Copy+Paste" in the context widown; As expected there is a wrap at the screen boundary and the whole DIR command is executed correctly
Code:
v22.00.26_$*dir /Nfv /odr function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinpu
t.sav <enter>
 Directory of  D:\tcmd v22\function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinp
ut.sav

12/04/2017  14:46               2  JPcommandInput.sav
12/04/2017   1:26         210,628  history.sav
12/04/2017   1:26           5,374  function.sav
12/04/2017   1:26             212  dirhistory.sav
12/04/2017   1:26          74,648  alias.sav
             290,864 bytes in 5 files and 0 dirs    307,200 bytes allocated
If I use the command Input window "Copy+Paste+run"
Code:
v22.00.26_$*dir /Nfv /odr function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinpu


 Directory of  D:\tcmd v22\function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinp
u

12/04/2017   1:26         210,628  history.sav
12/04/2017   1:26           5,374  function.sav
12/04/2017   1:26             212  dirhistory.sav
12/04/2017   1:26          74,648  alias.sav
             290,862 bytes in 4 files and 0 dirs    303,104 bytes allocated

v22.00.26_$t.sav
The jpcommandinput.sav is cut off, resulting in an incomplete DIR display. If the TCMD window is wide enough for the whole command to fit without wrapping, the "Copy+Paste+run" works the same as a "Copy+Paste" <enter>. Shouldn't they work the same despite the screen width?
Given this is WAD it would be good to add a caution to the Help.

v22.00.26_$ver
TCC 22.00.26 x64 Windows 10 [Version 10.0.15063]
 
WAD.

Copy+paste+run appends a CR/LF to the end of each marked line, so you can copy & execute more than a single line.
However, there isn't any end of line marker in a Windows console. So it is impossible to differentiate between a line that is exactly the max column width, and a line that wrapped to the next row.
 
Thanks. Seems like a great excuse for buying a bigger monitor so the lines don't wrap. :happy:

Didn't know it was possible to copy & execute more than one line.
 

Similar threads

Back
Top