Function colour_truncate:
Defined in module m_ansi (file: /std/modules/m_ansi.c)

colour_truncate(str, len) returns a string which consists of len or
fewer visible characters, not counting colour codes.

Prototype:
string colour_truncate(string str, int len);
