'Returns an ansi colour value given a `string`.
The same ansi colour value is always returned for the same string'

def colourFor(self, string):

    if (string not in self._cmap):
        self._cmap[string] = next(self._colourIter)
    return self._cmap[string]
