When a tab character is pasted into the wgnuplot terminal, it is marked with the hat symbol as "invalid character", and omitted. It used to trigger the tab autocompletion in earlier versions, and two pasted tabstops still trigger the autocompletion in gnuplot.exe.
So any nicely indented gnuplot script or tab separated dataset from the web first needs to go into an editor to replace the tabs by spaces.
And I recently noticed that unix LF line endings are silently swallowed on pasting, so everything ends up in one line.
Other characters with ascii code <32 might be similarly problematic, but normally don't occur in text.
The problem isn't exactly new. I understand that on windows, gnuplot by default is compiled using its own libreadline replacement, is that right?
@markisch An error with tab completion upon pasting occured before https://sourceforge.net/p/gnuplot/bugs/1444/
You wrote it was fixed at the time, but it seems to have crept back in after five years. ;)
Could this be related to the change I had to make for linux? The symptoms sound similar.
The world seems to have decided that the input layer should "sanitize" the buffer used for copy/paste. I had to disable this in order to use readline 8, and maybe Windows needs an equivalent?
Sorry the late reply.
Yes. In config/mingw/Makefile
The gnuplot binary distributions have been built without the external readline (keeping the comment out)
An Karl said, text editing on the wgnuplot console has a lot of problems and problems are not easy to fix.
Last edit: Tatsuro MATSUOKA 2023-03-20
I think the attached patch would fix this by ignoring non-printing characters in the input.
But it seems to me that this is treating the symptom rather than the problem.
How is this strange character getting into the input buffer?
And here is a short script that tests it: