Set certain command codes, discriminate codes and display in different colour