updating oE wrap


include graphics.e 
namespace graphics 
public procedure wrap(object on = 1) 

determines whether text will wrap when hitting the rightmost column.

  1. on : an object, 0 to truncate text, anything else to wrap.

By default text will wrap.

Use wrap in text modes or pixel-graphics modes when you are displaying long lines of text.

Example 1:
puts(1, repeat('x', 100) & "\n\n") 
-- now have a line of 80 'x' followed a line of 20 more 'x' 
puts(1, repeat('x', 100) & "\n\n") 
-- creates just one line of 80 'x' 
See Also:

puts, position

Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu