I met a strange behavior in copying configuration text from a notepad TXT file and paste into winbox terminal windows (right click-paste) in ros 7.10.1 :
pasted text put in and out safe mode, often random characters are displayed, causing bad command name.
All is fine pasting the same text (from windows clipboard) into a telnet session.
If you are pasting large/huge amounts of text into any network device ( via telnet or ssh ) , consider using Terra-Term.
Terra-Term has two optional delay options
Delay time between characters when pasting
Delay time after a carrage-retrun / line-feed when pasting
When using Terra-Term with both paste delay options , i’ve been able to paste in 64-thousand lines of code/text/data and not loose anything and not overrun any input buffers on the device I am pasting into.
Yes character and line delay is very useful in transferring many lines at a time (something like fast-typing by hand), however telnet/ssh is not the issue.
I always used to copy-paste from notepad to winbox terminal remotely and locally either, never had any problem.
This time I connected my HP notebook nic directly to an HAp-AX3 ethernet and got this behavior, either mac or IP connect, even just copying a single line.
one of the problems with pasting into a cli on any device might be the following:
each time there is a ( carriage return ) in the paste , the OS performs something and while it is in the process of performing something ( aka processing the command line , new paste data continues coming into the network device at the same time.
when the network device is busy processing your pasted line up to the the CPU is doing something else which may cause a TCP/IP network buffer to start to fill up. If the CPU is unable to finish the last line while the buffer is filling up , then you can end up with dropped/missing data ( aka garbage ).
Thus this is one of the reasons I sometimes use the Terra-Term telnet/ssh program when pasting large amounts of data. The delay settings after each character ( I use 1 ms ) and the delay settings after a carriage-return/line-feed ( I use 30 ms ) , will pause the paste just long enough for the CPU to complete processing something and return to the TCP/IP input buffer prior to it filling up - thus no loss of data and no garbage.
I have the same problem with winbox and notepad. I don’t see this issue with any other ssh/telnet client so the suggestions offered, while helpful in most cases, don’t really apply here
I assume you know you can ssh and/or telnet into a Mikrotik - so It sure does apply here ( especially when pasting thousands of lines into a Mikrotik - such as a NAT444 config to manage thousands of IPs across a dozen networks )
Bumping up this thread. This is beyond unbelievable - copy pasting from Notepad was NEVER a problem with ROS 6. Pasting ROS 6 config to ROS 7 console malforms the lines.
I always thought, that Notepad = clean text input / output and I am usually using it as a middle ground to copy paste across apps, and it always works. Not so with Mikrotik ROS 7 console.
And you know what? I have tried something completly crazy - I have copy pasted the config to MS Word. And man, it just works. MT should win some special prize for curing out the MS Word inefficiencies!
So plese, Mikrotik - could you fix this apparent buggy copy paste experince? And please, don’t suggest using other editor apart from Notepad - you know, I’ve got the MS Word already
Might be read as funny experience, except it’s not - there will be many ppl trying to get their config from ROS 6 to ROS 7 generation. We should make their experience easier, not the opposite.
Just wanted to add my experience here. Like the rest of you, I just ran into this issue with all sorts of weird behaviour as others have found.
I think you are jumping the gun to blame Mikrotik here. You know what else has had a lot of updates in recent months apart from RouterOS? Notepad has.
As much as I don’t really use Notepad++, I just switched to it and the problems instantly went away.
Now I can’t say for sure that is isn’t a weird Winbox compatibility issue, but I do know for a fact that Notepad has had a tonne of updates (which I’m personally not a fan of, but that’s a different issue) so at least for now just switch to Notepad++ when doing this kind of task.
The last few versions had updates that specifically dealt with pasting large text with SSH, but I am not sure if the Terminal window is an SSH connection or Telnet.
*) ssh - fix error that caused large chunks of text not being pasted in their entirety into console;
*) ssh - improved connection stability when pasting large chunks of text into console;
Not sure how they define “large”, but they did make improvements.
And don’t forget that you are using Windows and that using two characters for ending lines.
And unix/linux only uses one character for ending lines.
= Carriage return
= Line feed
For Windows
Ascii dec value 13,10
For Unix/Linux
Ascii dec value 10
For Mac OS Ver < 10
Ascii value dec 13
If you using relative newer versions of editor you can switch between thees 3 variants.
And then mark the text and copy and then paste. So you get the correct line endings with just .
It’s actually got worse over time with new versions of winbox.
It has nothing to do with CR+LF because often you don’t get anywhere near the right text or amount of it and appears to be a clipboard issue.
Using an SSH agent like putty and using that to paste text in seems to be better but I have still had issues with what seems to be font character differences.
Ok , but once text is copied (from notepad, word, wordpad, etc. ) it gaves unwanted behavior online when pasted into winbox, all’ is fine via network connections like telnet or ssh,
Where is the real issue ??
I have the same issue with Winbox - latest version, latest version of ROS/etc. This has been happening for about a year or so now - on all PC’s that I own. Doesn’t matter if notepad++ or notepad.exe - only have the issue with Winbox. Never used to have it. There are times when SSH/telnet is not a viable option.
If I copy the terminal data from Winbox3.41 to notepad in Windows 11, there are errors when I paste it back into the terminal..
If I do the same with MS Word, it’s fine.
But if I paste from notepad anywhere other than Winbox, it’s fine too. And even into the terminal of the new Winbox4. It must also be a problem on Mikrotik’s side. Unfortunately, Winbox4 is unusable so far, so we have no alternative.