Please enable JavaScript to view this site.

A-Shell 7.0 Release Notes

Navigation: Notes by Version and Date > 1762 — 21 September 2024

Continuation lines in TEXTxxxx directives

Scroll Prev Top Next More

Further GDI printing refinement: all of the //TEXTxxxx directives now support multi-line continuation of the trailing text parameter by ending the line with \. For example:

//TEXTOUT,100,200,Now is the time for all good \

programmers to get coding.

 

is now treated like:

//TEXTOUT,100,200,Now is the time for all good programmers to get coding.

It's probably not that valuable for //TEXTOUT, but for //TEXTRECTANGLE (syntax 2) it could be useful to avoid very long lines in your source document. For example:

//TEXTRECTANGLE,5,10,700,400,La cigale, ayant chanté tout l'ęte, \

    se trouva fort depourvu quand la bise fut venu...

 

Note that the intepretation of the trailing backslash as a continuation is disabled if the first character on the next line is a forward slash as in a //GDI directive. Another way to force a trailing backslash to be treated literally would be to enclose the entire text param in quotes, e.g.

//TEXTCENTER,10,50,100,200,"This is a literal backslash --\"

For the GDI commands which have the text parameter last, quoting is not otherwise necessary to avoid commas being treated as delimiters.