[ssh plugin] 256-colour helper stuff