petscii-bbs icon indicating copy to clipboard operation
petscii-bbs copied to clipboard

Passing petscii values into print()

Open ssshake opened this issue 5 years ago • 1 comments

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?

ssshake avatar Oct 29 '19 19:10 ssshake

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

sblendorio avatar Oct 30 '19 14:10 sblendorio