Multiline preamble for post processors

Here's the place for discussion related to CAM/CNC and the development of the Path module.
roivai
Posts: 117
Joined: Thu Feb 02, 2017 5:29 pm
Location: Oulu, Finland

Multiline preamble for post processors

Postby roivai » Sun May 06, 2018 5:19 am

Hi,

I don't know if this question would be for the GUI design or Path, but anyway, I tried to modify the preamble argument for LinuxCNC post processor. The default, according to the source code is "G17\nG90". I'd like to add one more line to that, but it appears that if I try to write to the job setup post processor arguments like this: --preamble="G17\nG90\nG64 P0.1", the GUI automatically escapes the string so that it actually prints the \n to the output instead of a line change. Is there a way to overcome this? I know that LinuxCNC should accept all those words in one line, but it would look cleaner if they were on separate lines. And I suppose one can easily come up with a preamble that cannot fit on a single line.

(Sorry about a rather old build here, but I suppose no change on this recently?)

OS: Debian GNU/Linux 8.6 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13352 (Git)
Build type: Unknown
Branch: master
Hash: e131793a38619e83646a7114a704cfcb796b071d
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)