Expand/Shrink

wrap

Definition: wrap(integer i)
Description: Allow text to wrap at the right margin (i = 1) or get truncated (i = 0).
pwa/p2js: Not supported
Comments: By default text will wrap.

Use wrap() when you are displaying long lines of text.
Example:
puts(1, repeat('x', 100) & "\n\n")
-- now have a line of 80 'x' followed a line of 20 more 'x'
wrap(0)
puts(1, repeat('x', 100) & "\n\n")
-- creates just one line of 80 'x'
Implementation: via :%opWrap / fwrap() in builtins\VM\pfileioN.e (an autoinclude).
See Also: puts, position