Add text wrapping functions to kernel

Perhaps desirable would be:

- Wrap to a certain width, rather than 96
- Word wrapping in addition to character mapping