sblendorio / petscii-bbs

A Java framework for building highly customizable PETSCII-enabled BBS, accessible from Commodore 64/128
Mozilla Public License 2.0
119 stars 16 forks source link

Passing petscii values into print() #26

Open ssshake opened 4 years ago

ssshake commented 4 years ago

Is there anyway to pass in petscii values via the print command?

I wish to do conditional colour coding using your existing rows behavior.

I would do an http get to fetch a document. Then I would like to insert ORANGE for example every time I find an image tag.

Or better yet, respect the color="<color"> html attribute on the original document.

It looks like write() is used for this currently but that would require a lot of mangling to get that to work I think. Any advice?

sblendorio commented 4 years ago

Hi. To write individual control characters I recommed you to use write() method. To write strings with no-encoding (so leaving them "as-is") you can use printRaw() and printlnRaw() methods