Shop OBEX P1 Docs P2 Docs Learn Events
Changing text colors in Prop OS — Parallax Forums

Changing text colors in Prop OS

NewzedNewzed Posts: 2,503
edited 2007-03-15 00:02 in Propeller 1
Mike, could you show me how to change the color of a line of text in the OS program?· I have one line in my mill program that needs to be emphasized - I know the Color Command is $13 but I don't know exactly how to use it.· My text is yellow on blue (default ?) and I would be happy if I could just invert the colors.· Anything to draw attention to this one line.

Thanks

Sid

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.

That is why they call it the present.

Don't have VGA?
Newzed@aol.com
·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-14 23:44
    You invert the character by setting the sign bit of the character(s) (adding 128 to it like "A"+128)
  • NewzedNewzed Posts: 2,503
    edited 2007-03-14 23:47
    Can I invert a string or would I have to do it letter by letter?

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-15 00:02
    Eventually it has to be done letter by letter. You can write your own version of "str" that does it for you.
Sign In or Register to comment.