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

control characters around Read more link? #11

Open
incandescentman opened this issue Jun 29, 2016 · 2 comments
Open

control characters around Read more link? #11

incandescentman opened this issue Jun 29, 2016 · 2 comments

Comments

@incandescentman
Copy link

I'm using OSX. Wiki works perfectly except for one thing: I get strange characters around the Read more link:

ESC[32mRead more: https://en.wikipedia.org/wiki/JusticeESC[0m

Wouldn't be a big deal except that when I click the link, it takes me to broken link URLs like this: https://en.wikipedia.org/wiki/JusticeESC

@walle
Copy link
Owner

walle commented Jun 29, 2016

That sounds strange, I have tested it in both iTerm and Terminal.app and get colorized output, no control characters. What terminal app do you use? Do you have any settings in your terminal application regarding color or escape characters?

A workaround for temporarily fixing the issue is to use the -n flag for skipping the colorized output. E.g.

$ wiki -n justice

You can also add an alias to your .bash_profile (depending on which shell you use) so you don't have to use the flag every time. E.g.

alias wiki='wiki -n'

Then you just use it as normal. E.g.

$ wiki justice

Hope this helps!

@incandescentman
Copy link
Author

Thanks, that workaround worked!

As for colors, here's what I have:

export LSCOLORS=GxFxCxDxBxegedabagaced
export TERM="xterm-color"
export CLICOMMANDSLOR=1
export LSCOMMANDSLORS=GxFxCxDxBxegedabagaced
export CLICOLOR=1

On Wed, Jun 29, 2016 at 9:54 AM, Fredrik Wallgren [email protected]
wrote:

That sounds strange, I have tested it in both iTerm and Terminal.app and
get colorized output, no control characters. What terminal app do you use?
Do you have any settings in your terminal application regarding color or
escape characters?

A workaround for temporarily fixing the issue is to use the -n flag for
skipping the colorized output. E.g.

$ wiki -n justice

You can also add an alias to your .bash_profile (depending on which shell
you use) so you don't have to use the flag every time. E.g.

alias wiki='wiki -n'

Then you just use it as normal. E.g.

$ wiki justice

Hope this helps!


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AB7EcoewCL7HRlk53AgJTIWcq9spVDzsks5qQnkQgaJpZM4JAvAl
.

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