Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing petscii values into print() #26

Open
ssshake opened this issue Oct 29, 2019 · 1 comment
Open

Passing petscii values into print() #26

ssshake opened this issue Oct 29, 2019 · 1 comment

Comments

@ssshake
Copy link

ssshake commented Oct 29, 2019

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants