Skip to content

release-1.3

Compare
Choose a tag to compare
@skx skx released this 01 Apr 05:41
· 42 commits to master since this release

This release adds support for word-wrapping, which is used for the display of output messages.

The wrapping is pretty naive, we allow a column to be defined as the wrap-column. Each time we output a string we output a character one at a time, counting the number of characters since the previous newline.

When we display a space, if the current column is wider than the wrap-column, we force a newline and reset our count.

This provides are rough guideline for wrapping, rather than a fixed one, but in practice it works well enough.

You can see the wrap-column via the new wrap command, and change it by entering wrap 40 (for example).