The map frame (background) colors were all over the place; the code should be much cleaner now, and still work exactly the same as before. I tested this with terminals with 8, 16, and 256 COLORS.