this is d.legend (formerly d.leg.thin).
Welcome to fix the remaining problems:
 - multiple cats in raster maps lead to a strange legend

