cslarsen / cslarsen/jp2a

Special characters don't work as a custom character palette?

Open
#13 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.1k
Forks
83
PR merge metrics
No merged PRs in 30d

Description

Hi Everyone,

Under Ubuntu, I noted that if you try to use special characters as a your palette, all jp2a seems to return are those funny "" characters that signify that the terminal can't render it. But the strange thing is, if I paste my UTF-8/Unicode characters like "░▒▓" into the terminal, it renders just fine. It's only after jp2a reads them that they get mangled up.

Does anyone have any ideas how to get this working? Maybe I need to specify special characters in a slightly different way?

Cheers,

EDIT:

As a workaround, I noted that you could simply set your pallete to something jp2a does understand (ie. "#$%") and then do a find/replace in the output to add back your special character palette. It kind of a hack, but at least the characters don't get mangled!

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source files, tests, or entry points. Reproduce the custom Unicode palette case under Ubuntu and compare it with direct terminal rendering; done means jp2a preserves the palette characters instead of producing replacement characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
ubuntu
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.